Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 00:18:52 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 00:18:52 +0300
commit2d8c4273ef831bb3eb0dd0680d1d99f11feb6c5d (patch)
treeeb99b8947b2c1411a092c74e27d4f4aee0925b2d /spec/models
parent757fdd34dce9a6783d4d3fa9e91f8e302590f242 (diff)
Fix models/ci/mail_service_spec.rb
- Change Notify to Ci::Notify - Downgrade sidekiq to fix CE errors: otherwise we need to check deliverables
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/mail_service_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/models/ci/mail_service_spec.rb b/spec/models/ci/mail_service_spec.rb
index 564c2941bb5..b5f37b349db 100644
--- a/spec/models/ci/mail_service_spec.rb
+++ b/spec/models/ci/mail_service_spec.rb
@@ -47,8 +47,8 @@ describe Ci::MailService do
end
def should_email(email)
- expect(Notify).to receive(:build_fail_email).with(build.id, email)
- expect(Notify).not_to receive(:build_success_email).with(build.id, email)
+ expect(Ci::Notify).to receive(:build_fail_email).with(build.id, email)
+ expect(Ci::Notify).not_to receive(:build_success_email).with(build.id, email)
end
end
@@ -69,8 +69,8 @@ describe Ci::MailService do
end
def should_email(email)
- expect(Notify).to receive(:build_success_email).with(build.id, email)
- expect(Notify).not_to receive(:build_fail_email).with(build.id, email)
+ expect(Ci::Notify).to receive(:build_success_email).with(build.id, email)
+ expect(Ci::Notify).not_to receive(:build_fail_email).with(build.id, email)
end
end
@@ -97,8 +97,8 @@ describe Ci::MailService do
end
def should_email(email)
- expect(Notify).to receive(:build_success_email).with(build.id, email)
- expect(Notify).not_to receive(:build_fail_email).with(build.id, email)
+ expect(Ci::Notify).to receive(:build_success_email).with(build.id, email)
+ expect(Ci::Notify).not_to receive(:build_fail_email).with(build.id, email)
end
end
@@ -125,8 +125,8 @@ describe Ci::MailService do
end
def should_email(email)
- expect(Notify).not_to receive(:build_success_email).with(build.id, email)
- expect(Notify).not_to receive(:build_fail_email).with(build.id, email)
+ expect(Ci::Notify).not_to receive(:build_success_email).with(build.id, email)
+ expect(Ci::Notify).not_to receive(:build_fail_email).with(build.id, email)
end
end
@@ -176,8 +176,8 @@ describe Ci::MailService do
end
def should_email(email)
- expect(Notify).not_to receive(:build_success_email).with(build.id, email)
- expect(Notify).not_to receive(:build_fail_email).with(build.id, email)
+ expect(Ci::Notify).not_to receive(:build_success_email).with(build.id, email)
+ expect(Ci::Notify).not_to receive(:build_fail_email).with(build.id, email)
end
end
end