spec/configurators/bundler_configurator_spec.rb in rconf-0.9.18 vs spec/configurators/bundler_configurator_spec.rb in rconf-0.9.19
- 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
@@ -31,15 +31,14 @@
@configurator.check_linux.should be_true
end
it 'should install bundler if needed' do
should_execute_in_ruby('bundle', '--version').once.and_return(success_result('1'))
- should_execute_in_ruby('bundle','_0_', 'install',
+ should_execute_in_ruby('bundle','_0_', 'install',
{:abort_on_failure=>"Failed to install gems"}).once.and_return(success_result)
should_execute_in_ruby('gem', 'uninstall', 'bundler', '-a', '-x').once.and_return(success_result)
should_execute_in_ruby('gem', 'install', 'bundler', '-v', '0', '--no-ri', '--no-rdoc',
{:abort_on_failure=>"Failed to install bundler"}).once.and_return(success_result)
@configurator.run_linux
end
-
end