Skip to content

Commit

Permalink
Clarify test code.
Browse files Browse the repository at this point in the history
"SMTPUTF8" was used as a standin for "an extension the server does not
support", which did no harm since the test server definitely didn't insert
that, but confused me for a moment, so this commit changes the name of the
unsupported extension to DOES-NOT-EXIST.
  • Loading branch information
arnt committed Jan 12, 2023
1 parent 2a17dea commit 37802bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/net/smtp/test_smtp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ def test_server_capabilities
smtp = Net::SMTP.start('localhost', port, starttls: false)
assert_equal({"STARTTLS"=>[], "AUTH"=>["PLAIN"]}, smtp.capabilities)
assert_equal(true, smtp.capable?('STARTTLS'))
assert_equal(false, smtp.capable?('SMTPUTF8'))
assert_equal(false, smtp.capable?('DOES-NOT-EXIST'))
else
port = fake_server_start
smtp = Net::SMTP.start('localhost', port, starttls: false)
assert_equal({"AUTH"=>["PLAIN"]}, smtp.capabilities)
assert_equal(false, smtp.capable?('STARTTLS'))
assert_equal(false, smtp.capable?('SMTPUTF8'))
assert_equal(false, smtp.capable?('DOES-NOT-EXIST'))
end
smtp.finish
end
Expand Down

0 comments on commit 37802bf

Please sign in to comment.