summaryrefslogtreecommitdiff
path: root/spec/mailers/ci
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-09-15 16:00:45 +0300
committerValery Sizov <vsv2711@gmail.com>2015-09-15 16:29:36 +0300
commit88b3195ecfd2d0d74c4e76ce79961cb6db2f8643 (patch)
tree837d7b6fb71675890f34996c23bb5153b5754e5e /spec/mailers/ci
parente2cbb36ba9751021174fd188d1c29e736f7b5d3d (diff)
downloadgitlab-ce-88b3195ecfd2d0d74c4e76ce79961cb6db2f8643.tar.gz
fix specs. Stage 6
Diffstat (limited to 'spec/mailers/ci')
-rw-r--r--spec/mailers/ci/notify_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/mailers/ci/notify_spec.rb b/spec/mailers/ci/notify_spec.rb
index 6a2c845cd0e..20d8ddcd135 100644
--- a/spec/mailers/ci/notify_spec.rb
+++ b/spec/mailers/ci/notify_spec.rb
@@ -1,17 +1,17 @@
require 'spec_helper'
-describe Notify do
+describe Ci::Notify do
include EmailSpec::Helpers
include EmailSpec::Matchers
before do
- @project = FactoryGirl.create :project
- @commit = FactoryGirl.create :commit, project: @project
- @build = FactoryGirl.create :build, commit: @commit
+ @project = FactoryGirl.create :ci_project
+ @commit = FactoryGirl.create :ci_commit, project: @project
+ @build = FactoryGirl.create :ci_build, commit: @commit
end
describe 'build success' do
- subject { Notify.build_success_email(@build.id, 'wow@example.com') }
+ subject { Ci::Notify.build_success_email(@build.id, 'wow@example.com') }
it 'has the correct subject' do
should have_subject /Build success for/
@@ -23,7 +23,7 @@ describe Notify do
end
describe 'build fail' do
- subject { Notify.build_fail_email(@build.id, 'wow@example.com') }
+ subject { Ci::Notify.build_fail_email(@build.id, 'wow@example.com') }
it 'has the correct subject' do
should have_subject /Build failed for/