spec/travis/deploy/config_spec.rb in travis-deploy-0.1.0 vs spec/travis/deploy/config_spec.rb in travis-deploy-0.2.0
- old
+ new
@@ -5,17 +5,17 @@
let(:config) { "staging:\n foo: bar" }
before :each do
Travis::Deploy::Config.any_instance.stub(:clean? => true)
Travis::Deploy::Config.any_instance.stub(:run)
- Travis::Keychain.any_instance.stub(:fetch => config)
+ Travis::Keychain.any_instance.stub(:source => config)
File.stub(:open)
end
describe 'sync' do
it 'fetches the config from the keychain' do
command = Travis::Deploy::Config.new(shell, 'staging', {})
- command.send(:keychain).should_receive(:fetch).and_return(config)
+ command.send(:keychain).should_receive(:source).and_return(config)
command.invoke
end
it 'writes the config to the local config file' do
command = Travis::Deploy::Config.new(shell, 'staging', {})