Update midi-smtp-server and silence test messages
This commit is contained in:
parent
f2cb17bcd6
commit
84319d2c1a
2 changed files with 4 additions and 4 deletions
|
@ -269,7 +269,7 @@ GEM
|
|||
rack-contrib (>= 1.1, < 3)
|
||||
railties (>= 3.0.0, < 6)
|
||||
method_source (0.9.0)
|
||||
midi-smtp-server (2.1.4)
|
||||
midi-smtp-server (2.3.1)
|
||||
mime-types (3.2.2)
|
||||
mime-types-data (~> 3.2015)
|
||||
mime-types-data (3.2018.0812)
|
||||
|
|
|
@ -3,7 +3,7 @@ require_relative '../spec_helper'
|
|||
describe FoodsoftMailReceiver do
|
||||
|
||||
before :all do
|
||||
@server = FoodsoftMailReceiver.new 0
|
||||
@server = FoodsoftMailReceiver.new 2525, '127.0.0.1', 4, logger_severity: 5
|
||||
@server.start
|
||||
end
|
||||
|
||||
|
@ -42,7 +42,7 @@ describe FoodsoftMailReceiver do
|
|||
|
||||
it 'does not accept invalid addresses via SMTP' do
|
||||
expect {
|
||||
Net::SMTP.start(@server.host, @server.port) do |smtp|
|
||||
Net::SMTP.start(@server.hosts.first, @server.ports.first) do |smtp|
|
||||
smtp.send_message 'body', 'from@example.com', 'invalid'
|
||||
end
|
||||
}.to raise_error(Net::SMTPFatalError)
|
||||
|
@ -50,7 +50,7 @@ describe FoodsoftMailReceiver do
|
|||
|
||||
it 'does not accept invalid addresses via SMTP' do
|
||||
expect {
|
||||
Net::SMTP.start(@server.host, @server.port) do |smtp|
|
||||
Net::SMTP.start(@server.hosts.first, @server.ports.first) do |smtp|
|
||||
smtp.send_message 'body', 'from@example.com', 'invalid'
|
||||
end
|
||||
}.to raise_error(Net::SMTPFatalError)
|
||||
|
|
Loading…
Reference in a new issue