summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/flatten_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/flatten_spec.rb')
-rw-r--r--spec/ruby/core/array/flatten_spec.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/ruby/core/array/flatten_spec.rb b/spec/ruby/core/array/flatten_spec.rb
index a274a01d89..1b7361552a 100644
--- a/spec/ruby/core/array/flatten_spec.rb
+++ b/spec/ruby/core/array/flatten_spec.rb
@@ -69,12 +69,10 @@ describe "Array#flatten" do
[1, z, 6].flatten.should == [1, 2, 3, 4, 5, 6]
end
- ruby_version_is "2.3" do
- it "does not call #to_ary on elements beyond the given level" do
- obj = mock("1")
- obj.should_not_receive(:to_ary)
- [[obj]].flatten(1)
- end
+ it "does not call #to_ary on elements beyond the given level" do
+ obj = mock("1")
+ obj.should_not_receive(:to_ary)
+ [[obj]].flatten(1)
end
it "returns subclass instance for Array subclasses" do