Merge pull request #92 from abf/rosa-build:91-remove-greeting-from-issue_assign_notification
[refs #91]: remove greeting from issue_assign_notification
This commit is contained in:
commit
016cac8be6
|
@ -42,7 +42,7 @@ class UserMailer < ActionMailer::Base
|
|||
end
|
||||
|
||||
def issue_assign_notification(issue, user)
|
||||
@user, @issue = user, issue
|
||||
@issue = issue
|
||||
mail(
|
||||
:to => email_with_name(user, user.email),
|
||||
:subject => subject_for_issue(@issue)
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
%p== Hello, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p You have been assigned to issue #{ link_to @issue.title, project_issue_url(@issue.project, @issue) }
|
||||
|
||||
|
||||
= render 'footer'
|
||||
= render 'footer'
|
|
@ -1,7 +1,3 @@
|
|||
%p== Здравствуйте, #{@user.user_appeal}.
|
||||
|
||||
|
||||
%p Вам была назначена задача #{ link_to @issue.title, project_issue_url(@issue.project, @issue) }
|
||||
|
||||
|
||||
= render 'footer'
|
||||
= render 'footer'
|
|
@ -64,10 +64,6 @@ describe UserMailer do
|
|||
@email.from.should == [APP_CONFIG['do-not-reply-email']]
|
||||
end
|
||||
|
||||
it 'should assign user name' do
|
||||
@email.body.encoded.should match(@user.name)
|
||||
end
|
||||
|
||||
it 'should assign issue title' do
|
||||
@email.body.encoded.should match(@issue.title)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue