summaryrefslogtreecommitdiff
path: root/spec/mailers/notify_spec.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-09-08 07:39:09 +0000
committerValery Sizov <valery@gitlab.com>2015-09-08 07:39:09 +0000
commitfd6be573ee87416c103b361d5a8843600e59903e (patch)
tree9ed3124d255d4432d3acbc4265d6fc1496041380 /spec/mailers/notify_spec.rb
parent305d9e20cc048a83bd4799942357cd690dacdef3 (diff)
parent77053a6c217e06770a348ac989992afbd41697f6 (diff)
downloadgitlab-ci-fd6be573ee87416c103b361d5a8843600e59903e.tar.gz
Merge branch 'rs-rspec3' into 'master'
RSpec 3 Updates CI's specs to be a bit more like CE's to make that transition a little easier. See merge request !246
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r--spec/mailers/notify_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index 6a2c845..efb202f 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -11,26 +11,26 @@ describe Notify do
end
describe 'build success' do
- subject { Notify.build_success_email(@build.id, 'wow@example.com') }
+ 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
describe 'build fail' do
- subject { Notify.build_fail_email(@build.id, 'wow@example.com') }
+ 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