spec/dockly/build_cache/docker_spec.rb in dockly-1.3.5 vs spec/dockly/build_cache/docker_spec.rb in dockly-1.4.0

- old
+ new

@@ -57,13 +57,12 @@ build_cache.stub(:copy_output_dir) { StringIO.new } end it "does have the file lol" do i = build_cache.execute! - output = "" - i.run('ls /').attach { |source,chunk| output += chunk } - output.should include('lol') + output = i.run('ls /').attach(:stdout => true) + output.first.first.lines.map(&:chomp).should include('lol') end end end describe "#run_build" do @@ -150,10 +149,10 @@ describe '#parameter_output' do before do build_cache.parameter_command command end - let(:output) { "3.8.0-27-generic" } + let(:output) { "3.12.9-2-ARCH" } context "when parameter command returns successfully" do let(:command) { "uname -r" } it 'returns the output of the parameter_command' do expect(build_cache.parameter_output(command)).to eq(output)