summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAkshay Karle <akshay.a.karle@gmail.com>2014-01-06 18:25:09 -0300
committerAkshay Karle <akshay.a.karle@gmail.com>2014-01-06 18:25:09 -0300
commite30a3b6a9e4931201aab59f61ab27e60c7446b5c (patch)
tree88bf8454ffc4f371727bc491656d618bbe640dee /spec
parent76e139b00771a5509d4fbebb9a26a54349cca503 (diff)
downloadmixlib-shellout-e30a3b6a9e4931201aab59f61ab27e60c7446b5c.tar.gz
Fix a broken spec
Diffstat (limited to 'spec')
-rw-r--r--spec/mixlib/shellout_spec.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index fed9c44..e20a85c 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -446,18 +446,17 @@ describe Mixlib::ShellOut do
context "with a live stream" do
let(:stream) { StringIO.new }
- let(:ruby_code) { 'puts "hello"' }
- let(:ruby_code) { '$stderr.puts "world"' }
+ let(:ruby_code) { '$stdout.puts "hello"; $stderr.puts "world"' }
let(:options) { { :live_stream => stream } }
it "should copy the child's stdout to the live stream" do
shell_cmd.run_command
- stream.string.should eql("hello#{LINE_ENDING}")
+ stream.string.should include("hello#{LINE_ENDING}")
end
it "should copy the child's stderr to the live stream" do
shell_cmd.run_command
- stream.string.should eql("world#{LINE_ENDING}")
+ stream.string.should include("world#{LINE_ENDING}")
end
end