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:
warpc 2013-04-10 14:01:20 +04:00
commit 016cac8be6
4 changed files with 3 additions and 15 deletions

View File

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

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) }
= render 'footer'

View File

@ -1,7 +1,3 @@
%p== Здравствуйте, #{@user.user_appeal}.
%p Вам была назначена задача #{ link_to @issue.title, project_issue_url(@issue.project, @issue) }
= render 'footer'

View File

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