diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-08-20 23:04:53 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-08-20 23:04:53 -0400 |
commit | 652d955c92937d74bd81b9af4adf3b1549d89876 (patch) | |
tree | fe1150732998da552e291c0ecca3beb2838896bb /spec | |
parent | b2b88b2ff2a3044efa259d06c630dc903d0851bd (diff) | |
download | gitlab-ce-652d955c92937d74bd81b9af4adf3b1549d89876.tar.gz |
Remove some duplication in the Notify mailer
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mailers/notify_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index 27af1e381c8..93427ebfacd 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -24,7 +24,7 @@ describe Notify do end it 'has the correct subject' do - should have_subject /Account was created for you/ + should have_subject /^gitlab \| Account was created for you$/ end it 'contains the new user\'s login name' do @@ -60,7 +60,7 @@ describe Notify do it_behaves_like 'an assignee email' it 'has the correct subject' do - should have_subject /new issue ##{issue.id}/ + should have_subject /new issue ##{issue.id} \| #{issue.title} \| #{project.name}/ end it 'contains a link to the new issue' do @@ -76,7 +76,7 @@ describe Notify do it_behaves_like 'a multiple recipients email' it 'has the correct subject' do - should have_subject /changed issue/ + should have_subject /changed issue ##{issue.id} \| #{issue.title}/ end it 'contains the name of the previous assignee' do |