diff options
Diffstat (limited to 'spec/PostRunner_spec.rb')
-rw-r--r-- | spec/PostRunner_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb index bd75974..08ed686 100644 --- a/spec/PostRunner_spec.rb +++ b/spec/PostRunner_spec.rb @@ -31,7 +31,9 @@ describe PostRunner::Main do $stderr = old_stderr end - { :retval => retval, :stdout => stdout.string, :stderr => stderr.string } + stdout.rewind + stderr.rewind + { :retval => retval, :stdout => stdout.read, :stderr => stderr.read} end before(:all) do |