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