Skip to content

Commit 26762b0

Browse files
committed
Open3.capture* only exist on 1.9+.
1 parent 0576fd5 commit 26762b0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
require 'open3'
22

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

8-
expect(result[0]).to eq "\n"
9+
expect(result[0]).to eq "\n"
10+
end
911
end
1012
end

0 commit comments

Comments
 (0)