summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/webrick/httpauth/digestauth.rb2
-rw-r--r--test/ruby/test_parse.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/httpauth/digestauth.rb b/lib/webrick/httpauth/digestauth.rb
index 78ad45b233..0eea94774f 100644
--- a/lib/webrick/httpauth/digestauth.rb
+++ b/lib/webrick/httpauth/digestauth.rb
@@ -204,7 +204,7 @@ module WEBrick
password = @userdb.get_passwd(@realm, auth_req['username'], @reload_db)
unless password
- error('%s: the user is not allowd.', auth_req['username'])
+ error('%s: the user is not allowed.', auth_req['username'])
return false
end
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index d4ab596782..db6281f620 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -361,7 +361,7 @@ class TestParse < Test::Unit::TestCase
assert_equal("foo 1 bar", "foo #$1 bar")
end
- def test_dstr_disallowd_variable
+ def test_dstr_disallowed_variable
bug8375 = '[ruby-core:54885] [Bug #8375]'
%w[@ @1 @@. @@ @@1 @@. $ $%].each do |src|
src = '#'+src+' '