Browse files

avoid bundle exec in test_all

  • Loading branch information...
mislav committed Jan 9, 2013
1 parent 538285b commit 57d20b450933f23e92454b55cb9a778a5e99ba04
Showing with 5 additions and 6 deletions.
  1. +5 −6 script/test_all
@@ -22,9 +22,8 @@ for file in `find spec -iname '*_spec.rb'`; do
bin/rspec $file -b --format progress
-# TODO: it would be nice to figure out how to run the cukes w/o the overhead of
-# bundler, but just running `bin/cucumber` can fail due to the fact that it
-# shells out (via aruba) and executes `rspec`--which can pick up the wrong
-# rspec version if we're not running with bundler.
-bundle exec bin/cucumber
+# Prepare RUBYOPT for scenarios that are shelling out to ruby,
+# and PATH for those that are using `rspec` or `rake`.
+RUBYOPT="-I${PWD}/bundle -rbundler/setup" \
+ PATH="${PWD}/bin:$PATH" \
+ bin/cucumber

0 comments on commit 57d20b4

Please sign in to comment.