Commit 063527c6 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Executable] Format spec code

parent b8db786a
...@@ -29,25 +29,22 @@ module Pod ...@@ -29,25 +29,22 @@ module Pod
Executable.execute_command('ruby', cmd, true).should == "out\n" Executable.execute_command('ruby', cmd, true).should == "out\n"
end end
end end
it "returns the right output" do it 'returns the right output' do
cmd = ['-e', <<-RB] cmd = ['-e', <<-RB]
puts 'foo' puts 'foo'
puts 'bar' puts 'bar'
RB RB
Timeout.timeout(2) do Executable.execute_command('ruby', cmd, true).should == "foo\nbar\n"
Executable.execute_command('ruby', cmd, true).should == "foo\nbar\n"
end
end end
it "handles an EOFError" do it "handles an EOFError" do
cmd = ['-e', <<-RB] cmd = ['-e', <<-RB]
puts 'foo' puts 'foo'
print 'bar' print 'bar'
RB RB
Timeout.timeout(2) do Executable.execute_command('ruby', cmd, true).should == "foo\nbar#{$/}"
Executable.execute_command('ruby', cmd, true).should == "foo\nbar#{$/}" end
end
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