summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xbin/bacon1
-rw-r--r--test/spec_bacon.rb3
-rw-r--r--test/spec_should.rb4
3 files changed, 3 insertions, 5 deletions
diff --git a/bin/bacon b/bin/bacon
index cc3a08c..955142b 100755
--- a/bin/bacon
+++ b/bin/bacon
@@ -2,6 +2,7 @@
 # -*- ruby -*-
 
 require 'optparse'
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '../lib/')
 module Bacon; end
 
 automatic = false
diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb
index 0d8aefa..cfbd151 100644
--- a/test/spec_bacon.rb
+++ b/test/spec_bacon.rb
@@ -1,5 +1,4 @@
-$: << File.dirname(__FILE__) + '/../lib/'
-require 'bacon'
+require File.join(File.dirname(__FILE__), '../lib/bacon')
 
 # Hooray for meta-testing.
 module MetaTests
diff --git a/test/spec_should.rb b/test/spec_should.rb
index be34038..25557a3 100644
--- a/test/spec_should.rb
+++ b/test/spec_should.rb
@@ -1,6 +1,4 @@
-$: << File.dirname(__FILE__) + '/../lib/'
-require 'bacon'
-
+require File.join(File.dirname(__FILE__), '../lib/bacon')
 
 describe "#should shortcut for #it('should')" do