Skip to content

Commit 2032d76

Browse files
committed
This is not correct for 1.8, so mask it.
1 parent 3b5f7fb commit 2032d76

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
describe "GH-1962: Kernel::Array" do
2-
it "coerces Array-like objects that only define method_missing" do
3-
o = Object.new
4-
def o.method_missing(name, *args)
5-
[]
6-
end
1+
if RUBY_VERSION >= "1.9"
2+
describe "GH-1962: Kernel::Array" do
3+
it "coerces Array-like objects that only define method_missing" do
4+
o = Object.new
5+
def o.method_missing(name, *args)
6+
[]
7+
end
78

8-
expect(Array(o)).to eq([])
9+
expect(Array(o)).to eq([])
10+
end
911
end
1012
end

0 commit comments

Comments
 (0)