Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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