Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require 'open3'

describe "Open3.popen3" do
it "accepts and ignores empty trailing options hash" do
# capture3 is an easy way to test popen3 options behavior
result = Open3.capture3('echo')
if RUBY_VERSION > '1.9'
describe "Open3.popen3" do
it "accepts and ignores empty trailing options hash" do
# capture3 is an easy way to test popen3 options behavior
result = Open3.capture3('echo')

expect(result[0]).to eq "\n"
expect(result[0]).to eq "\n"
end
end
end

0 comments on commit 26762b0

Please sign in to comment.