Skip to content

Commit

Permalink
Open3.capture* only exist on 1.9+.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Dec 12, 2014
1 parent 0576fd5 commit 26762b0
Showing 1 changed file with 7 additions and 5 deletions.
@@ -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.