summaryrefslogtreecommitdiff
path: root/test
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
commit6693e3e7230ca64b01ffb24d2693af1c77bd2998 (patch)
treef29f3da805c1e36c190792427e4336b251ee5f07 /test
parentdfee14d34cd8c3c9b7acc27372e06eb5bfcfd5c1 (diff)
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')
-rw-r--r--test/-ext-/string/test_capacity.rb2
-rw-r--r--test/net/imap/test_imap.rb4
-rw-r--r--test/net/imap/test_imap_response_parser.rb2
-rw-r--r--test/pathname/test_pathname.rb2
-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
9 files changed, 12 insertions, 12 deletions
diff --git a/test/-ext-/string/test_capacity.rb b/test/-ext-/string/test_capacity.rb
index 6ef5a8c4da5..65444123a72 100644
--- a/test/-ext-/string/test_capacity.rb
+++ b/test/-ext-/string/test_capacity.rb
@@ -8,7 +8,7 @@ class Test_StringCapacity < Test::Unit::TestCase
Bug::String.capacity(str)
end
- def test_capacity_embeded
+ def test_capacity_embedded
size = RbConfig::SIZEOF['void*'] * 3 - 1
assert_equal size, capa('foo')
end
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index 0f64e882cc1..8e48317dab8 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -315,7 +315,7 @@ class IMAPTest < Test::Unit::TestCase
imap.idle(0.2) do |res|
responses.push(res)
end
- # There is no gurantee that this thread has received all the responses,
+ # There is no guarantee that this thread has received all the responses,
# so check the response length.
if responses.length > 0
assert_instance_of(Net::IMAP::ContinuationRequest, responses[0])
@@ -328,7 +328,7 @@ class IMAPTest < Test::Unit::TestCase
end
end
end
- # Also, there is no gurantee that the server thread has stored
+ # Also, there is no guarantee that the server thread has stored
# all the requests into the array, so check the length.
if requests.length > 0
assert_equal("RUBY0001 IDLE\r\n", requests[0])
diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb
index 7aac2786fe0..12c8a27017f 100644
--- a/test/net/imap/test_imap_response_parser.rb
+++ b/test/net/imap/test_imap_response_parser.rb
@@ -247,7 +247,7 @@ EOF
assert_equal("AUTH=PLAIN", response.data.last)
end
- def test_mixed_boundry
+ def test_mixed_boundary
parser = Net::IMAP::ResponseParser.new
response = parser.parse("* 2688 FETCH (UID 179161 BODYSTRUCTURE (" \
"(\"TEXT\" \"PLAIN\" (\"CHARSET\" \"iso-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 200 4 NIL NIL NIL)" \
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index caaa788f08a..5007ebac229 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -544,7 +544,7 @@ class TestPathname < Test::Unit::TestCase
defassert(:pathsubext, 'lex.yy.o', 'lex.yy.c', '.o')
defassert(:pathsubext, 'fooaa.o', 'fooaa', '.o')
defassert(:pathsubext, 'd.e/aa.o', 'd.e/aa', '.o')
- defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embeded[ruby-core:31640]', '.bug-3664')
+ defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embedded[ruby-core:31640]', '.bug-3664')
def test_sub_matchdata
result = Pathname("abc.gif").sub(/\..*/) {
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 93576470bd0..508312e4a2f 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 5250d4b44aa..f2e89c0f26d 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 c9a0b58d701..92c99612595 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 c7c4129e3e0..7920c60262a 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 62b8d654415..beb85272ff7 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