Skip to content
Browse files

reinstate loading rspec lib dir from bin/spec

  • Loading branch information...
1 parent e7b87c4 commit 956575317020f853c83610377661ce8a52c50669 @dchelimsky dchelimsky committed Sep 13, 2009
Showing with 2 additions and 5 deletions.
  1. +0 −1 Manifest.txt
  2. +0 −4 bin/dev
  3. +2 −0 bin/spec
View
1 Manifest.txt
@@ -8,7 +8,6 @@ Ruby1.9.rdoc
TODO.txt
Upgrade.rdoc
bin/autospec
-bin/dev
bin/spec
cucumber.yml
examples/failing/README.txt
View
4 bin/dev
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-rspec_lib = File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))
-rspec_bin = File.expand_path(File.join(File.dirname(__FILE__), "spec"))
-system "ruby -I#{rspec_lib} #{rspec_bin} #{ARGV.join(' ')}"
View
2 bin/spec
@@ -1,3 +1,5 @@
#!/usr/bin/env ruby
+rspec_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(rspec_dir) unless $LOAD_PATH.include?(rspec_dir)
require 'spec/autorun'
exit ::Spec::Runner::CommandLine.run

0 comments on commit 9565753

Please sign in to comment.
Something went wrong with that request. Please try again.