Commit 5eaa6270eb30a14a861224812658323265e97544
1 parent
e422115b
Exists in
master
and in
29 other branches
rails3: fix invite_friend tests
PS: still failing due to mailer stubs.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/invite_friend_test.rb
... | ... | @@ -133,7 +133,7 @@ class InviteFriendTest < ActiveSupport::TestCase |
133 | 133 | |
134 | 134 | task = InviteFriend.create!(:person => person, :friend_email => 'test@test.com', :message => '<url>') |
135 | 135 | |
136 | - email = TaskMailer.deliver_invitation_notification(task) | |
136 | + email = TaskMailer.invitation_notification(task).deliver | |
137 | 137 | |
138 | 138 | assert_match(/#{task.requestor.name} wants to be your friend./, email.subject) |
139 | 139 | end | ... | ... |