Commit ddaa0379 authored by Florian R. Hanke's avatar Florian R. Hanke

Add spec for EOFError code path.

parent 41d2b9ab
...@@ -39,5 +39,15 @@ module Pod ...@@ -39,5 +39,15 @@ module Pod
Executable.execute_command('ruby', cmd, true).should == "foo\nbar\n" Executable.execute_command('ruby', cmd, true).should == "foo\nbar\n"
end end
end end
it "handles an EOFError" do
cmd = ['-e', <<-RB]
puts 'foo'
print 'bar'
RB
Timeout.timeout(2) do
Executable.execute_command('ruby', cmd, true).should == "foo\nbar#{$/}"
end
end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment