diff options
Diffstat (limited to 'spec/ruby/core/array/map_spec.rb')
| -rw-r--r-- | spec/ruby/core/array/map_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/ruby/core/array/map_spec.rb b/spec/ruby/core/array/map_spec.rb new file mode 100644 index 0000000000..f5e88c8624 --- /dev/null +++ b/spec/ruby/core/array/map_spec.rb @@ -0,0 +1,13 @@ +require_relative '../../spec_helper' + +describe "Array#map" do + it "is an alias of Array#collect" do + Array.instance_method(:map).should == Array.instance_method(:collect) + end +end + +describe "Array#map!" do + it "is an alias of Array#collect!" do + Array.instance_method(:map!).should == Array.instance_method(:collect!) + end +end |
