From 8223420ba288463049f93016d36344a5566a4742 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Wed, 24 Dec 2014 23:43:33 -0500 Subject: [PATCH] Fix acceptance tests where we should be using Bundler --- spec/acceptance/active_model_integration_spec.rb | 2 +- spec/support/acceptance/helpers/step_helpers.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/active_model_integration_spec.rb b/spec/acceptance/active_model_integration_spec.rb index 2f4971ea..9a29e5c7 100644 --- a/spec/acceptance/active_model_integration_spec.rb +++ b/spec/acceptance/active_model_integration_spec.rb @@ -14,7 +14,7 @@ describe 'shoulda-matchers integrates with an ActiveModel project' do puts "Loaded all dependencies without errors" FILE - result = run_command('bundle exec ruby load_dependencies.rb') + result = run_command_within_bundle('ruby load_dependencies.rb') expect(result).to have_output('Loaded all dependencies without errors') end end diff --git a/spec/support/acceptance/helpers/step_helpers.rb b/spec/support/acceptance/helpers/step_helpers.rb index 6dab48d3..2b8c8f49 100644 --- a/spec/support/acceptance/helpers/step_helpers.rb +++ b/spec/support/acceptance/helpers/step_helpers.rb @@ -67,7 +67,7 @@ module AcceptanceTests end def run_n_unit_tests(*paths) - run_command 'ruby -I lib -I test', *paths + run_command_within_bundle 'ruby -I lib -I test', *paths end def run_n_unit_test_suite