summaryrefslogtreecommitdiff
path: root/spec/mailers/notify_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r--spec/mailers/notify_spec.rb20
1 files changed, 2 insertions, 18 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index 547268d44f0..224b613b477 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -402,22 +402,6 @@ describe Notify do
end
end
- describe 'on a project wall' do
- let(:note_on_the_wall_path) { project_wall_path(project, anchor: "note_#{note.id}") }
-
- subject { Notify.note_wall_email(recipient.id, note.id) }
-
- it_behaves_like 'a note email'
-
- it 'has the correct subject' do
- should have_subject /#{project.name}/
- end
-
- it 'contains a link to the wall note' do
- should have_body_text /#{note_on_the_wall_path}/
- end
- end
-
describe 'on a commit' do
let(:commit) { project.repository.commit }
@@ -542,7 +526,7 @@ describe Notify do
end
it 'has the correct subject' do
- should have_subject /New push to repository/
+ should have_subject /#{commits.length} new commits pushed to repository/
end
it 'includes commits list' do
@@ -578,7 +562,7 @@ describe Notify do
end
it 'has the correct subject' do
- should have_subject /New push to repository/
+ should have_subject /#{commits.first.title}/
end
it 'includes commits list' do