diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-02 18:29:53 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-02 19:17:37 +0900 |
commit | a2024081805af4e729bea029abb7bbe7c383dce2 (patch) | |
tree | a7a46007a44e6ca541980aaa9bd65950d9f277c6 /spec/ruby/core/struct | |
parent | c2dcaa73626ab7a44dcc357d9751d9e2285d56ba (diff) | |
download | ruby-a2024081805af4e729bea029abb7bbe7c383dce2.tar.gz |
Fix typos
Diffstat (limited to 'spec/ruby/core/struct')
-rw-r--r-- | spec/ruby/core/struct/values_at_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/struct/values_at_spec.rb b/spec/ruby/core/struct/values_at_spec.rb index 7e517cdb4b..e7d287cba2 100644 --- a/spec/ruby/core/struct/values_at_spec.rb +++ b/spec/ruby/core/struct/values_at_spec.rb @@ -4,9 +4,9 @@ require_relative 'fixtures/classes' describe "Struct#values_at" do it "returns an array of values" do clazz = Struct.new(:name, :director, :year) - movie = clazz.new('Sympathy for Mr. Vengence', 'Chan-wook Park', 2002) - movie.values_at(0, 1).should == ['Sympathy for Mr. Vengence', 'Chan-wook Park'] - movie.values_at(0..2).should == ['Sympathy for Mr. Vengence', 'Chan-wook Park', 2002] + movie = clazz.new('Sympathy for Mr. Vengeance', 'Chan-wook Park', 2002) + movie.values_at(0, 1).should == ['Sympathy for Mr. Vengeance', 'Chan-wook Park'] + movie.values_at(0..2).should == ['Sympathy for Mr. Vengeance', 'Chan-wook Park', 2002] end it "fails when passed unsupported types" do |