summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-30 19:10:53 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-08-30 19:12:55 -0400
commit77053a6c217e06770a348ac989992afbd41697f6 (patch)
tree11df50675162be2045777c1f59c312d359e0d6cf /spec/mailers
parent74b995d17b095e326177e7c0e452f0df3a1ab885 (diff)
downloadgitlab-ci-77053a6c217e06770a348ac989992afbd41697f6.tar.gz
Convert to RSpec3 syntax via transpecrs-rspec3
Command: transpec -c 'bundle exec rspec spec -t ~feature' \ -o should,oneliner,should_receive
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/notify_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index 5211c66..efb202f 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -14,11 +14,11 @@ describe Notify do
subject { described_class.build_success_email(@build.id, 'wow@example.com') }
it 'has the correct subject' do
- should have_subject /Build success for/
+ is_expected.to have_subject /Build success for/
end
it 'contains name of project' do
- should have_body_text /build successful/
+ is_expected.to have_body_text /build successful/
end
end
@@ -26,11 +26,11 @@ describe Notify do
subject { described_class.build_fail_email(@build.id, 'wow@example.com') }
it 'has the correct subject' do
- should have_subject /Build failed for/
+ is_expected.to have_subject /Build failed for/
end
it 'contains name of project' do
- should have_body_text /build failed/
+ is_expected.to have_body_text /build failed/
end
end
end