diff options
Diffstat (limited to 'spec/ruby/core/array/map_spec.rb')
| -rw-r--r-- | spec/ruby/core/array/map_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/ruby/core/array/map_spec.rb b/spec/ruby/core/array/map_spec.rb index 0c7f3afa8c..f5e88c8624 100644 --- a/spec/ruby/core/array/map_spec.rb +++ b/spec/ruby/core/array/map_spec.rb @@ -1,11 +1,13 @@ require_relative '../../spec_helper' -require_relative 'fixtures/classes' -require_relative 'shared/collect' describe "Array#map" do - it_behaves_like :array_collect, :map + it "is an alias of Array#collect" do + Array.instance_method(:map).should == Array.instance_method(:collect) + end end describe "Array#map!" do - it_behaves_like :array_collect_b, :map! + it "is an alias of Array#collect!" do + Array.instance_method(:map!).should == Array.instance_method(:collect!) + end end |
