summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/map_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/map_spec.rb')
-rw-r--r--spec/ruby/core/array/map_spec.rb13
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
* gems/bundled_gems: Upgraded to test-unit-3.0.1 and minitest-5.4.1hsbt git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2014-08-05* gems/bundled_gems: Upgrade to test-unit-3.0.0 and minitest-5.4.0.hsbt git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2014-06-24* tool/make-snapshot: download bundle gems when package making.hsbt [Feature #9852][ruby-core:62676] * gems/bundled_gems: listed bundled gems for Ruby 2.2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e