before(:all) do Archive::Zip.archive( "tmp/app.zip", "README.md") end
after(:all) do FileUtils.rm "tmp/app.zip" end
let(:mail) do AppMailer.send_email(zip_path) end
it 'assings the attachment file'do attachment = mail.attachments[0] expect(attachment).to be_a_kind_of(Mail::Part) expect(attachment.content_type).to be_start_with('application/zip') expect(attachment.filename).to eq "app.zip" end end
最後に改行を含めるとエラーメッセージが出るとのことなので、含めないほうがよさそうです。warning: /etc/hosts.allow, line 20: missing newline or line too longというメッセージが /var/log/messages または /var/log/secureに出力されるとのことです。
$ idn libidn 1.32 Copyright 2002-2015 Simon Josefsson. GNU Libidn is free software with ABSOLUTELY NO WARRANTY. For more information about these matters, see <http://www.gnu.org/licenses/>. Typeeachinputstringon a line by itself, terminatedby a newline character.