Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed ambiguous spec

  • Loading branch information...
commit 1306fa2bde9adf2c36030002d641005da20d444b 1 parent 8d5f92c
@ujihisa ujihisa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  core/array/flatten_spec.rb
View
2  core/array/flatten_spec.rb
@@ -125,7 +125,7 @@
end
end
- it "ignores negative levels" do
+ it "treats negative levels as no arguments" do
[ 1, 2, [ 3, 4, [5, 6] ] ].flatten!(-1).should == [1, 2, 3, 4, 5, 6]
[ 1, 2, [ 3, 4, [5, 6] ] ].flatten!(-10).should == [1, 2, 3, 4, 5, 6]
end
Please sign in to comment.
Something went wrong with that request. Please try again.