spec/spec_helper.rb in rconf-0.9.18 vs spec/spec_helper.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
@@ -13,11 +13,11 @@
require 'rspec'
require "flexmock"
require File.join(File.dirname(__FILE__), '..', 'lib', 'rconf')
-RSpec.configure do |c|
+RSpec.configure do |c|
c.mock_with(:flexmock)
end
# Create configurator for testing and setup common mocks
#
@@ -33,10 +33,10 @@
[:report_check, :report_error, :report_result, :report_success].each do |meth|
flexmock(configurator).should_receive(meth)
end
flexmock(configurator).should_receive(:report_fatal).and_return { |*args| raise args.join(' ') }
flexmock(File).should_receive(:exist?).with(File.join(ENV['HOME'], '.rconf')).and_return(false)
- flexmock(RightConf::EnvironmentUpdater).should_receive(:update) unless opts[:enable_updater]
+ flexmock(RightConf::EnvironmentUpdater).should_receive(:update) unless opts[:enable_updater]
configurator
end
# Helper method to mock Command.execute
#