Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add method stub for ready_to_send on mock mailer

  • Loading branch information...
commit 3e82a47751b6385cf6befff6d860e108cd5ae027 1 parent 0c2131c
@adzap authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/test_armailer.rb
View
3  test/test_armailer.rb
@@ -9,6 +9,7 @@ def @mail.encoded() 'email' end
def @mail.from() ['nobody@example.com'] end
def @mail.[](key) {'return-path' => $return_path, 'from' => 'nobody@example.com'}[key] end
def @mail.destinations() %w[user1@example.com user2@example.com] end
+ def @mail.ready_to_send() end
end
end
@@ -30,7 +31,7 @@ def test_self_email_class_equals
assert_equal 2, Newsletter.records.length
end
-
+
def test_perform_delivery_activerecord_when_return_path_is_present
$return_path = stub(:spec => 'return-path@example.com')
Mailer.deliver_mail
Please sign in to comment.
Something went wrong with that request. Please try again.