aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 11:27:06 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 11:27:06 +0000
commitd13b9f621af3d2d98b9cd3682c71db917be4e1b2 (patch)
treef29f3da805c1e36c190792427e4336b251ee5f07 /test/ruby
parent58420a65c20e7ca0fe97b20d724b637f0f1c739b (diff)
downloadruby-d13b9f621af3d2d98b9cd3682c71db917be4e1b2.tar.gz
Fixed misspelling words.
These are detected by https://github.com/client9/misspell git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_array.rb4
-rw-r--r--test/ruby/test_class.rb2
-rw-r--r--test/ruby/test_fiber.rb2
-rw-r--r--test/ruby/test_io.rb2
-rw-r--r--test/ruby/test_syntax.rb4
5 files changed, 7 insertions, 7 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 93576470bd..508312e4a2 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -2624,8 +2624,8 @@ class TestArray < Test::Unit::TestCase
def test_array_subclass
assert_equal(Array2, Array2[1,2,3].uniq.class, "[ruby-dev:34581]")
- assert_equal(Array2, Array2[1,2][0,1].class) # embeded
- assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embeded
+ assert_equal(Array2, Array2[1,2][0,1].class) # embedded
+ assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embedded
end
def test_inspect
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 5250d4b44a..f2e89c0f26 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -89,7 +89,7 @@ class TestClass < Test::Unit::TestCase
end
end
- def test_instanciate_singleton_class
+ def test_instantiate_singleton_class
c = class << Object.new; self; end
assert_raise(TypeError) { c.new }
end
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index c9a0b58d70..92c9961259 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -234,7 +234,7 @@ class TestFiber < Test::Unit::TestCase
assert_instance_of(Class, Fiber.new(&Class.new.method(:undef_method)).resume(:to_s), bug5083)
end
- def test_prohibit_resume_transfered_fiber
+ def test_prohibit_resume_transferred_fiber
assert_raise(FiberError){
root_fiber = Fiber.current
f = Fiber.new{
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index c7c4129e3e..7920c60262 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -3586,7 +3586,7 @@ __END__
after = ObjectSpace.count_objects(res)[:T_STRING]
assert_equal before, after,
'no strings left over after write [ruby-core:78898] [Bug #13085]'
- assert_not_predicate buf, :frozen?, 'no inadvertant freeze'
+ assert_not_predicate buf, :frozen?, 'no inadvertent freeze'
assert_equal buf.bytesize, n, 'IO#write wrote expected size'
assert_equal s, n, 'IO#syswrite wrote expected size'
end
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 62b8d65441..beb85272ff 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -1041,7 +1041,7 @@ eom
begin;
tap do
result << :begin
- raise "An exception occured!"
+ raise "An exception occurred!"
ensure
result << :ensure
end
@@ -1057,7 +1057,7 @@ eom
begin;
tap do
result << :begin
- raise "An exception occured!"
+ raise "An exception occurred!"
rescue
result << :rescue
else