Update midi-smtp-server and silence test messages

This commit is contained in:
wvengen 2019-10-28 09:40:17 +01:00 committed by wvengen
parent f2cb17bcd6
commit 84319d2c1a
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)