diff options
author | Michael Fellinger <m.fellinger@gmail.com> | 2008-02-10 14:49:58 +0100 |
---|---|---|
committer | Michael Fellinger <m.fellinger@gmail.com> | 2008-02-10 14:49:58 +0100 |
commit | 96f476e7ad3e0ff5951df57f07f38164a021e1b5 (patch) | |
tree | 01227020f86f583dc33536ce3d59fb406be127a5 | |
parent | 1900d706e433dd275ee86992c99ecca32949edc3 (diff) | |
download | bacon-96f476e7ad3e0ff5951df57f07f38164a021e1b5.tar.gz bacon-96f476e7ad3e0ff5951df57f07f38164a021e1b5.tar.xz bacon-96f476e7ad3e0ff5951df57f07f38164a021e1b5.zip |
Improve require for lib/bacon
darcs-hash:20080210134958-cbc08-0c493ce02119a8a1ce9e7d71629df0283c01635a.gz
-rwxr-xr-x | bin/bacon | 1 | ||||
-rw-r--r-- | test/spec_bacon.rb | 3 | ||||
-rw-r--r-- | test/spec_should.rb | 4 |
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 |