Permalink
Browse files

Continue test when ruby-debug is missing

  • Loading branch information...
1 parent 7c7d409 commit cf336111b3af7237bebb2179a3a1cd7586944f64 @bf4 bf4 committed May 26, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 test.rb
View
@@ -1,6 +1,10 @@
require 'rubygems'
require 'mail'
-require 'ruby-debug'
+begin
+ require 'ruby-debug'
+rescue LoadError
+ STDERR.puts "Continuing without ruby-debug"
+end
smtp = { :address => 'mail.fiendz.org', :port => 587, :domain => 'fiendz.org', :user_name => 'test@fiendz.org', :password => 'foobar', :enable_starttls_auto => true, :openssl_verify_mode => 'none' }
Mail.defaults { delivery_method :smtp, smtp }

0 comments on commit cf33611

Please sign in to comment.