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
|
end
|
||||||
|
|
||||||
def issue_assign_notification(issue, user)
|
def issue_assign_notification(issue, user)
|
||||||
@user, @issue = user, issue
|
@issue = issue
|
||||||
mail(
|
mail(
|
||||||
:to => email_with_name(user, user.email),
|
:to => email_with_name(user, user.email),
|
||||||
:subject => subject_for_issue(@issue)
|
: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) }
|
%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) }
|
%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']]
|
@email.from.should == [APP_CONFIG['do-not-reply-email']]
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should assign user name' do
|
|
||||||
@email.body.encoded.should match(@user.name)
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'should assign issue title' do
|
it 'should assign issue title' do
|
||||||
@email.body.encoded.should match(@issue.title)
|
@email.body.encoded.should match(@issue.title)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue