spec/configurators/ruby_configurator_spec.rb in rconf-0.9.7 vs spec/configurators/ruby_configurator_spec.rb in rconf-0.9.8
- old
+ new
@@ -27,11 +27,10 @@
end
it 'should succeed on linux when rvm succeeds' do
should_execute('rvm', '--version').once.and_return(success_result("rvm #{RVM_VERSION}"))
should_execute('rvm', 'current').once.and_return(success_result("0@"))
- #should_execute('rvm', 'use', '0', Hash).once.and_return(success_result('Using '))
should_execute('rvm', '0@', 'gem', '--version').once.and_return(success_result('1'))
@configurator.run_linux
end
it 'should install rvm if needed' do
@@ -48,10 +47,9 @@
end
it 'should install rubygems if needed' do
should_execute('rvm', '--version').once.and_return(success_result("rvm #{RVM_VERSION}"))
should_execute('rvm', 'current').once.and_return(success_result("0@"))
- #should_execute('rvm', 'use', '0', Hash).once.and_return(success_result('Using '))
should_execute('rvm', '0@', 'gem', '--version').once.and_return(success_result('0'))
should_execute('rvm', '0@', 'rubygems', '1',
{:abort_on_failure=>'Failed to install rubygems'}).once.and_return(success_result)
@configurator.run_linux
end