summaryrefslogtreecommitdiff
path: root/spec/models/project_spec.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-01 22:57:50 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-01 22:57:50 +0200
commit77cb8ec4d14e3a8b03164423176b3b95977ee809 (patch)
tree52cfc71ed426ea2c2efc037cfb79d2bb5485c769 /spec/models/project_spec.rb
parentd1fdefeecdf9305f65a7b78bc0c2218f2dcd9956 (diff)
downloadgitlab-ce-downcase-registry-repository.tar.gz
Introduce container_registry_path_with_namespacedowncase-registry-repository
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r--spec/models/project_spec.rb23
1 files changed, 9 insertions, 14 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 65f06b51794..338a4c3d3f0 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -784,6 +784,15 @@ 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_repository' do
let(:project) { create(:empty_project) }
@@ -792,13 +801,6 @@ describe Project, models: true do
subject { project.container_registry_repository }
it { is_expected.not_to be_nil }
-
- context 'for uppercase project path' do
- let(:project) { create(:empty_project, path: 'PROJECT') }
-
- it { expect(subject.path).not_to end_with(project.path) }
- it { expect(subject.path).to end_with(project.path.downcase) }
- end
end
describe '#container_registry_repository_url' do
@@ -817,13 +819,6 @@ describe Project, models: true do
end
it { is_expected.not_to be_nil }
-
- context 'for uppercase project path' do
- let(:project) { create(:empty_project, path: 'PROJECT') }
-
- it { is_expected.not_to end_with(project.path) }
- it { is_expected.to end_with(project.path.downcase) }
- end
end
context 'for disabled registry' do