summaryrefslogtreecommitdiff
path: root/spec/ruby/core/struct/values_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/struct/values_spec.rb')
-rw-r--r--spec/ruby/core/struct/values_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/ruby/core/struct/values_spec.rb b/spec/ruby/core/struct/values_spec.rb
index b2d11725b9..16583253d7 100644
--- a/spec/ruby/core/struct/values_spec.rb
+++ b/spec/ruby/core/struct/values_spec.rb
@@ -2,10 +2,7 @@ require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "Struct#values" do
- it "is a synonym for to_a" do
- car = StructClasses::Car.new('Nissan', 'Maxima')
- car.values.should == car.to_a
-
- StructClasses::Car.new.values.should == StructClasses::Car.new.to_a
+ it "is an alias of Struct#to_a" do
+ StructClasses::Car.instance_method(:values).should == StructClasses::Car.instance_method(:to_a)
end
end