Skip to content

Commit

Permalink
Merge pull request #89 from tas50/master
Browse files Browse the repository at this point in the history
Fix typo in test methods
  • Loading branch information
tmtm authored Jan 1, 2025
2 parents fe2635b + 85da49c commit 53482b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/net/smtp/test_smtp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_auth_plain
assert_equal "AUTH PLAIN AGFjY291bnQAcGFzc3dvcmQ=\r\n", server.commands.last
end

def test_unsucessful_auth_plain
def test_unsuccessful_auth_plain
server = FakeServer.start(auth: 'plain')
smtp = Net::SMTP.start 'localhost', server.port
err = assert_raise(Net::SMTPAuthenticationError) { smtp.authenticate("foo", "bar", :plain) }
Expand All @@ -126,7 +126,7 @@ def test_auth_login
assert smtp.authenticate("account", "password", :login).success?
end

def test_unsucessful_auth_login
def test_unsuccessful_auth_login
server = FakeServer.start(auth: 'login')
smtp = Net::SMTP.start 'localhost', server.port
err = assert_raise(Net::SMTPAuthenticationError) { smtp.authenticate("foo", "bar", :login) }
Expand Down Expand Up @@ -154,7 +154,7 @@ def test_auth_xoauth2
assert_equal "AUTH XOAUTH2 dXNlcj1hY2NvdW50AWF1dGg9QmVhcmVyIHRva2VuAQE=\r\n", server.commands.last
end

def test_unsucessful_auth_xoauth2
def test_unsuccessful_auth_xoauth2
server = FakeServer.start(auth: 'xoauth2')
smtp = Net::SMTP.start 'localhost', server.port
err = assert_raise(Net::SMTPAuthenticationError) { smtp.authenticate("account", "password", :xoauth2) }
Expand Down

0 comments on commit 53482b8

Please sign in to comment.