summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-02 18:29:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-02 19:17:37 +0900
commita2024081805af4e729bea029abb7bbe7c383dce2 (patch)
treea7a46007a44e6ca541980aaa9bd65950d9f277c6 /spec
parentc2dcaa73626ab7a44dcc357d9751d9e2285d56ba (diff)
Fix typos
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/complex/comparison_spec.rb (renamed from spec/ruby/core/complex/comparision_spec.rb)0
-rw-r--r--spec/ruby/core/struct/values_at_spec.rb6
-rw-r--r--spec/ruby/shared/rational/divmod.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/complex/comparision_spec.rb b/spec/ruby/core/complex/comparison_spec.rb
index 2a437afb71..2a437afb71 100644
--- a/spec/ruby/core/complex/comparision_spec.rb
+++ b/spec/ruby/core/complex/comparison_spec.rb
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
diff --git a/spec/ruby/shared/rational/divmod.rb b/spec/ruby/shared/rational/divmod.rb
index 5b319a95ff..471cd7a967 100644
--- a/spec/ruby/shared/rational/divmod.rb
+++ b/spec/ruby/shared/rational/divmod.rb
@@ -9,7 +9,7 @@ describe :rational_divmod_rat, shared: true do
Rational(bignum_value, 4).divmod(Rational(4, 3)).should eql([1729382256910270464, Rational(0, 1)])
end
- it "raises a ZeroDivisonError when passed a Rational with a numerator of 0" do
+ it "raises a ZeroDivisionError when passed a Rational with a numerator of 0" do
-> { Rational(7, 4).divmod(Rational(0, 3)) }.should raise_error(ZeroDivisionError)
end
end