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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-12 00:10:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-12 00:10:21 +0300
commit0ae8428c8e77d5d7e098827be688b1f146321af1 (patch)
treecfc80aac796be0dd42ce32a1bd79c8327071993d /spec/config
parentf020d5dc9bf42fe27b1451af34e7ab3a0c38d344 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/config')
-rw-r--r--spec/config/inject_enterprise_edition_module_spec.rb26
1 files changed, 7 insertions, 19 deletions
diff --git a/spec/config/inject_enterprise_edition_module_spec.rb b/spec/config/inject_enterprise_edition_module_spec.rb
index c65d909cc6b..61b40e46001 100644
--- a/spec/config/inject_enterprise_edition_module_spec.rb
+++ b/spec/config/inject_enterprise_edition_module_spec.rb
@@ -28,19 +28,7 @@ RSpec.describe InjectEnterpriseEditionModule do
it "calls #{method} with the extension module" do
expect(fish_class).to receive(method).with(fish_extension)
- fish_class.__send__("#{method}_if_ee", fish_name)
- end
-
- it "ignores EE prefix and calls #{method} with the extension module" do
- expect(fish_class).to receive(method).with(fish_extension)
-
- fish_class.__send__("#{method}_if_ee", "EE::#{fish_name}")
- end
-
- it "ignores ::EE prefix and calls #{method} with the extension module" do
- expect(fish_class).to receive(method).with(fish_extension)
-
- fish_class.__send__("#{method}_if_ee", "::EE::#{fish_name}")
+ fish_class.__send__("#{method}_mod_with", fish_name)
end
end
@@ -55,7 +43,7 @@ RSpec.describe InjectEnterpriseEditionModule do
it "calls #{method} with the extension module from the additional namespace" do
expect(fish_class).to receive(method).with(fish_extension)
- fish_class.__send__("#{method}_if_ee", fish_name, namespace: another_namespace)
+ fish_class.__send__("#{method}_mod_with", fish_name, namespace: another_namespace)
end
end
@@ -67,7 +55,7 @@ RSpec.describe InjectEnterpriseEditionModule do
it "does not call #{method}" do
expect(fish_class).not_to receive(method).with(fish_extension)
- fish_class.__send__("#{method}_if_ee", fish_name)
+ fish_class.__send__("#{method}_mod_with", fish_name)
end
end
@@ -75,7 +63,7 @@ RSpec.describe InjectEnterpriseEditionModule do
it "does not call #{method}" do
expect(fish_class).not_to receive(method).with(fish_extension)
- fish_class.__send__("#{method}_if_ee", fish_name)
+ fish_class.__send__("#{method}_mod_with", fish_name)
end
end
end
@@ -115,15 +103,15 @@ RSpec.describe InjectEnterpriseEditionModule do
end
end
- describe '#prepend_if_ee' do
+ describe '#prepend_mod_with' do
it_behaves_like 'expand the extension with', :prepend
end
- describe '#extend_if_ee' do
+ describe '#extend_mod_with' do
it_behaves_like 'expand the extension with', :extend
end
- describe '#include_if_ee' do
+ describe '#include_mod_with' do
it_behaves_like 'expand the extension with', :include
end