features/step_definitions/test_steps.rb in katapult-0.1.1 vs features/step_definitions/test_steps.rb in katapult-0.1.2
- old
+ new
@@ -1,7 +1,11 @@
-Then /^the specs should pass$/ do
- run_simple('bin/rspec')
+When /^I run rspec/ do
+ run_simple 'rspec'
end
-Then /^the features should pass$/ do
- run_simple('bin/cucumber')
+When /^I run cucumber/ do
+ # The test application's Bundler sees an empty BUNDLE_GEMFILE variable and
+ # infers the wrong Gemfile location. Fixed by removing the var altogether.
+ delete_environment_variable 'BUNDLE_GEMFILE'
+
+ run_simple 'bundle exec cucumber'
end