[#200] fixed email specs
This commit is contained in:
parent
a8d76474aa
commit
8c253d1633
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue