Commit 3b34084bdeadecdceb0a86e2820dd7c5985099f6
1 parent
b8115e76
Exists in
spb-stable
and in
2 other branches
Fix notify specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
spec/mailers/notify_spec.rb
@@ -239,7 +239,7 @@ describe Notify do | @@ -239,7 +239,7 @@ describe Notify do | ||
239 | it_behaves_like 'an assignee email' | 239 | it_behaves_like 'an assignee email' |
240 | 240 | ||
241 | it 'has the correct subject' do | 241 | it 'has the correct subject' do |
242 | - should have_subject /#{merge_request.title} \(!#{merge_request.iid}\)/ | 242 | + should have_subject /#{merge_request.title} \(##{merge_request.iid}\)/ |
243 | end | 243 | end |
244 | 244 | ||
245 | it 'contains a link to the new merge request' do | 245 | it 'contains a link to the new merge request' do |
@@ -275,7 +275,7 @@ describe Notify do | @@ -275,7 +275,7 @@ describe Notify do | ||
275 | end | 275 | end |
276 | 276 | ||
277 | it 'has the correct subject' do | 277 | it 'has the correct subject' do |
278 | - should have_subject /#{merge_request.title} \(!#{merge_request.iid}\)/ | 278 | + should have_subject /#{merge_request.title} \(##{merge_request.iid}\)/ |
279 | end | 279 | end |
280 | 280 | ||
281 | it 'contains the name of the previous assignee' do | 281 | it 'contains the name of the previous assignee' do |
@@ -303,7 +303,7 @@ describe Notify do | @@ -303,7 +303,7 @@ describe Notify do | ||
303 | end | 303 | end |
304 | 304 | ||
305 | it 'has the correct subject' do | 305 | it 'has the correct subject' do |
306 | - should have_subject /#{merge_request.title} \(!#{merge_request.iid}\)/ | 306 | + should have_subject /#{merge_request.title} \(##{merge_request.iid}\)/ |
307 | end | 307 | end |
308 | 308 | ||
309 | it 'contains the new status' do | 309 | it 'contains the new status' do |
@@ -426,7 +426,7 @@ describe Notify do | @@ -426,7 +426,7 @@ describe Notify do | ||
426 | it_behaves_like 'a note email' | 426 | it_behaves_like 'a note email' |
427 | 427 | ||
428 | it 'has the correct subject' do | 428 | it 'has the correct subject' do |
429 | - should have_subject /#{merge_request.title} \(!#{merge_request.iid}\)/ | 429 | + should have_subject /#{merge_request.title} \(##{merge_request.iid}\)/ |
430 | end | 430 | end |
431 | 431 | ||
432 | it 'contains a link to the merge request note' do | 432 | it 'contains a link to the merge request note' do |