Skip to content

Commit

Permalink
This is not correct for 1.8, so mask it.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Sep 10, 2014
1 parent 3b5f7fb commit 2032d76
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions spec/regression/GH-1962_Kernel_Array_coercion_spec.rb
@@ -1,10 +1,12 @@
describe "GH-1962: Kernel::Array" do
it "coerces Array-like objects that only define method_missing" do
o = Object.new
def o.method_missing(name, *args)
[]
end
if RUBY_VERSION >= "1.9"
describe "GH-1962: Kernel::Array" do
it "coerces Array-like objects that only define method_missing" do
o = Object.new
def o.method_missing(name, *args)
[]
end

expect(Array(o)).to eq([])
expect(Array(o)).to eq([])
end
end
end

0 comments on commit 2032d76

Please sign in to comment.