spec/kontena/cli/stacks/build_command_spec.rb in kontena-cli-1.2.0.pre1 vs spec/kontena/cli/stacks/build_command_spec.rb in kontena-cli-1.2.0.pre2

- old
+ new

@@ -32,11 +32,11 @@ } end before(:each) do allow(subject).to receive(:require_config_file).with('kontena.yml').and_return(true) - allow(subject).to receive(:stack_from_yaml).with('kontena.yml', hash_including(:name, :values)).and_return(stack) + allow(subject).to receive(:stack_read_and_dump).with('kontena.yml', hash_including(:name, :values)).and_return(stack) allow(subject).to receive(:system).and_return(true) end expect_to_require_current_master expect_to_require_current_master_token @@ -45,10 +45,10 @@ expect(subject).to receive(:require_config_file).with('kontena.yml').and_return(true) subject.run([]) end it 'reads stack file' do - expect(subject).to receive(:stack_from_yaml).with('kontena.yml', hash_including(:name, :values)).and_return(stack) + expect(subject).to receive(:stack_read_and_dump).with('kontena.yml', hash_including(:name, :values)).and_return(stack) subject.run([]) end it 'builds docker image' do expect(subject).to receive(:system).with('docker', 'build', '-t', 'registry.kontena.local/test:latest', '--pull', File.expand_path('.'))