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:
Diffstat (limited to 'spec/lib/gitlab/checks/change_access_spec.rb')
-rw-r--r--spec/lib/gitlab/checks/change_access_spec.rb20
1 files changed, 15 insertions, 5 deletions
diff --git a/spec/lib/gitlab/checks/change_access_spec.rb b/spec/lib/gitlab/checks/change_access_spec.rb
index 3a8e8f67e16..dfc8c59fd74 100644
--- a/spec/lib/gitlab/checks/change_access_spec.rb
+++ b/spec/lib/gitlab/checks/change_access_spec.rb
@@ -14,31 +14,41 @@ describe Gitlab::Checks::ChangeAccess do
end
it 'calls pushes checks' do
- expect_any_instance_of(Gitlab::Checks::PushCheck).to receive(:validate!)
+ expect_next_instance_of(Gitlab::Checks::PushCheck) do |instance|
+ expect(instance).to receive(:validate!)
+ end
subject.exec
end
it 'calls branches checks' do
- expect_any_instance_of(Gitlab::Checks::BranchCheck).to receive(:validate!)
+ expect_next_instance_of(Gitlab::Checks::BranchCheck) do |instance|
+ expect(instance).to receive(:validate!)
+ end
subject.exec
end
it 'calls tags checks' do
- expect_any_instance_of(Gitlab::Checks::TagCheck).to receive(:validate!)
+ expect_next_instance_of(Gitlab::Checks::TagCheck) do |instance|
+ expect(instance).to receive(:validate!)
+ end
subject.exec
end
it 'calls lfs checks' do
- expect_any_instance_of(Gitlab::Checks::LfsCheck).to receive(:validate!)
+ expect_next_instance_of(Gitlab::Checks::LfsCheck) do |instance|
+ expect(instance).to receive(:validate!)
+ end
subject.exec
end
it 'calls diff checks' do
- expect_any_instance_of(Gitlab::Checks::DiffCheck).to receive(:validate!)
+ expect_next_instance_of(Gitlab::Checks::DiffCheck) do |instance|
+ expect(instance).to receive(:validate!)
+ end
subject.exec
end