spec/configurators/bundler_configurator_spec.rb in rconf-1.0.6 vs spec/configurators/bundler_configurator_spec.rb in rconf-1.0.7

- old
+ new

@@ -34,18 +34,20 @@ after(:each) do RightConf::Command.instance.instance_variable_set(:@ruby_prefix, nil) end it 'should succeed when bundler succeeds' do - should_execute('bundle', '--version').once.and_return(success_result('0')) + should_execute('bundle', '_0_', '--version').once.and_return(success_result('0')) + should_execute('bundle', '_0_', 'check').once.and_return(success_result('dependencies are satisfied')) @configurator.check_linux.should be_true end it 'should install bundler if needed' do should_execute('gem', 'install', 'bundler', '-v', '0', '--no-ri', '--no-rdoc', {:abort_on_failure=>"Failed to install bundler"}).once.and_return(success_result) should_execute('bundle','_0_', 'install', {:abort_on_failure=>"Failed to install gems"}).once.and_return(success_result) + should_execute('rbenv', 'rehash').once.and_return(success_result) @configurator.run_linux end end