diff options
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r-- | spec/mailers/notify_spec.rb | 8 |
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 |