Skip to content
Permalink
Browse files
Open3.capture* only exist on 1.9+.
  • Loading branch information
headius committed Dec 12, 2014
1 parent 0576fd5 commit 26762b066ae1634a8348202c9251cc3150266c74
Showing with 7 additions and 5 deletions.
  1. +7 −5 spec/regression/GH-2298_capture3_accepts_trailing_options_spec.rb
@@ -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.