#91: remove greeting from issue_assign_notification, update specs

This commit is contained in:
Vokhmin Alexey V 2013-04-09 16:57:29 +04:00
parent 4619310319
commit 0ef0e55e58
4 changed files with 3 additions and 15 deletions

View File

@ -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)

View File

@ -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'

View File

@ -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'

View File

@ -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