Runs Circle CI #129

Merged
merged 9 commits into from Jan 26, 2017

Use mailtrap.io to test SMTP sending

  • Loading branch information...
rust committed Jan 26, 2017
commit e011afc5f0086455a7818c3c45076faaf6c0c7bd
View
@@ -17,4 +17,5 @@ rdoc
spec/reports
test/tmp
test/version_tmp
-.ruby-version
+.ruby-version
+.envrc
View
@@ -6,5 +6,4 @@ machine:
test:
override:
- - python -m smtpd -n -c DebuggingServer localhost:1025 2>&1 > /dev/null &
- bundle exec rake test
View
@@ -342,7 +342,16 @@
end
it "delivers through SMTP" do
- @mail.delivery_method :smtp, { enable_starttls_auto: false, port: 1025 }
+ @mail.delivery_method :smtp, {
+ enable_starttls_auto: false,
+ user_name: ENV['MAILTRAP_USERNAME'],
+ password: ENV['MAILTRAP_PASSWORD'],
+ address: 'mailtrap.io',
+ domain: 'mailtrap.io',
+ port: '2525',
+ authentication: :cram_md5
+ }
+
expect {
@mail.deliver
}.not_to raise_error