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