spec/cli/update_spec.rb in heirloom-0.4.1rc1 vs spec/cli/update_spec.rb in heirloom-0.5.0rc1
- old
+ new
@@ -10,10 +10,12 @@
:attribute => 'att',
:updated_value => 'val' }
@logger_stub = stub :debug => true
@config_mock = mock 'config'
@archive_mock = mock 'archive'
- @config_mock.stub :logger => @logger_mock
+ @config_mock.stub :logger => @logger_stub,
+ :access_key => 'key',
+ :secret_key => 'secret'
Trollop.stub(:options).and_return options
Heirloom::HeirloomLogger.should_receive(:new).with(:log_level => 'info').
and_return @logger_stub
Heirloom::CLI::Update.any_instance.should_receive(:load_config).
with(:logger => @logger_stub,