From 600eeeb4d73587ca9ff6adcd29fcedec504c8e5b Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 22 Mar 2012 15:12:22 +0600 Subject: [PATCH] [refs #194] fixed mailer tests --- spec/mailers/user_mailer_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb index 84c51250e..07967ee93 100644 --- a/spec/mailers/user_mailer_spec.rb +++ b/spec/mailers/user_mailer_spec.rb @@ -13,7 +13,7 @@ describe UserMailer do any_instance_of(Project, :versions => ['v1.0', 'v2.0']) - @issue = Factory(:issue, :project_id => @project.id, :user_id => @issue_user.id) + @issue = Factory(:issue, :project_id => @project.id, :user_id => @issue_user.id, :creator => @issue_user) @email = UserMailer.new_issue_notification(@issue, @issue_user).deliver end @@ -52,7 +52,7 @@ describe UserMailer do any_instance_of(Project, :versions => ['v1.0', 'v2.0']) - @issue = Factory(:issue, :project_id => @project.id, :user_id => @issue_user.id) + @issue = Factory(:issue, :project_id => @project.id, :user_id => @issue_user.id, :creator => @issue_user) @email = UserMailer.issue_assign_notification(@issue, @user).deliver end @@ -88,8 +88,8 @@ describe UserMailer do any_instance_of(Project, :versions => ['v1.0', 'v2.0']) - @issue = Factory(:issue, :project_id => @project.id, :user_id => @issue_user.id) - @comment = Factory(:comment, :commentable => @issue, :user_id => @user.id) + @issue = Factory(:issue, :project_id => @project.id, :user_id => @issue_user.id, :creator => @issue_user) + @comment = Factory(:comment, :commentable => @issue, :user_id => @user.id, :project => @project) @email = UserMailer.new_comment_notification(@comment, @issue_user).deliver end