lib/fast-mailer.rb in fast-mailer-0.0.1 vs lib/fast-mailer.rb in fast-mailer-0.1.0

- old
+ new

@@ -1,5 +1,22 @@ require 'mail' +require 'hooks' require 'fast-mailer/configuration' require 'fast-mailer/smtp' +require 'fast-mailer/mailer' + +module FastMailer + + class <<self + def test_mode=(value) + require 'fast-mailer/mock_smtp' if value + @@test_mode = value + end + + def test_mode + @@test_mode ||= false + end + end + +end