[#200] fixed email specs

This commit is contained in:
Alexander Machehin 2013-07-24 20:04:10 +06:00
parent a8d76474aa
commit 8c253d1633
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ describe UserMailer do
any_instance_of(Project, :versions => ['v1.0', 'v2.0'])
@issue = FactoryGirl.create(:issue, :project_id => @project.id, :assignee_id => @issue_user.id, :user => @issue_user)
@email = UserMailer.new_issue_notification(@issue, @issue_user).deliver
@email = UserMailer.new_issue_notification(@issue, @issue_user).deliver!
end
it 'should have correct subject' do
@ -48,7 +48,7 @@ describe UserMailer do
any_instance_of(Project, :versions => ['v1.0', 'v2.0'])
@issue = FactoryGirl.create(:issue, :project_id => @project.id, :assignee_id => @issue_user.id, :user => @issue_user)
@email = UserMailer.issue_assign_notification(@issue, @user).deliver
@email = UserMailer.issue_assign_notification(@issue, @user).deliver!
end
it 'should have correct subject' do
@ -81,7 +81,7 @@ describe UserMailer do
@issue = FactoryGirl.create(:issue, :project_id => @project.id, :assignee_id => @issue_user.id, :user => @issue_user)
@comment = FactoryGirl.create(:comment, :commentable => @issue, :user_id => @user.id, :project => @project)
@email = UserMailer.new_comment_notification(@comment, @issue_user).deliver
@email = UserMailer.new_comment_notification(@comment, @issue_user).deliver!
end
it 'should have correct subject' do