spec/configurators/ruby_configurator_spec.rb in rconf-0.8.30 vs spec/configurators/ruby_configurator_spec.rb in rconf-0.9.4
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2011 RightScale, Inc, All Rights Reserved Worldwide.
+# Copyright (C) 2011-2012 RightScale, Inc, All Rights Reserved Worldwide.
#
# THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE
# AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use,
# reproduction, modification, or disclosure of this program is
# strictly prohibited. Any use of this program by an authorized
@@ -27,11 +27,11 @@
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', 'list').once.and_return(success_result("=> rvm #{RVM_VERSION}"))
- should_execute('rvm', 'use', '0').once.and_return(success_result('Using '))
+ 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 +48,10 @@
end
it 'should install rubygems if needed' do
should_execute('rvm', '--version').once.and_return(success_result("rvm #{RVM_VERSION}"))
should_execute('rvm', 'list').once.and_return(success_result("=> rvm #{RVM_VERSION}"))
- should_execute('rvm', 'use', '0').once.and_return(success_result('Using '))
+ 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