summaryrefslogtreecommitdiff
path: root/spec/models/project_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-24 13:27:05 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-24 13:27:05 +0100
commit16e645c6563b81ce03e481b094abc2d331d05f36 (patch)
treee53a94e973e1aa607bb1d6d433e80baefe0a568a /spec/models/project_spec.rb
parent4fdcaca6a148475a18aa5931b62c4173301ded8c (diff)
downloadgitlab-ce-16e645c6563b81ce03e481b094abc2d331d05f36.tar.gz
Remove container_registry method from project class
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r--spec/models/project_spec.rb29
1 files changed, 3 insertions, 26 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 69b7906bb4e..e4e75cc6a09 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -1389,25 +1389,6 @@ describe Project, models: true do
end
end
- describe '#container_registry_path_with_namespace' do
- let(:project) { create(:empty_project, path: 'PROJECT') }
-
- subject { project.container_registry_path_with_namespace }
-
- it { is_expected.not_to eq(project.path_with_namespace) }
- it { is_expected.to eq(project.path_with_namespace.downcase) }
- end
-
- describe '#container_registry' do
- let(:project) { create(:empty_project) }
-
- before { stub_container_registry_config(enabled: true) }
-
- subject { project.container_registry }
-
- it { is_expected.not_to be_nil }
- end
-
describe '#container_registry_url' do
let(:project) { create(:empty_project) }
@@ -1417,10 +1398,8 @@ describe Project, models: true do
context 'for enabled registry' do
let(:registry_settings) do
- {
- enabled: true,
- host_port: 'example.com',
- }
+ { enabled: true,
+ host_port: 'example.com' }
end
it { is_expected.not_to be_nil }
@@ -1428,9 +1407,7 @@ describe Project, models: true do
context 'for disabled registry' do
let(:registry_settings) do
- {
- enabled: false
- }
+ { enabled: false }
end
it { is_expected.to be_nil }