summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-13 20:08:47 +0100
committerPhil Hughes <me@iamphill.com>2017-04-13 20:08:47 +0100
commit1d99c7755ce337a715847344f4f20df23b29bfc7 (patch)
treed18b0951f07332939c873e300a4b4079e422ad3c /spec/models
parenta8b7a4b71760932341b3a58542b5702495d65ba9 (diff)
parent7d7dfee48b3455eec07968e7517f9d843a04da66 (diff)
downloadgitlab-ce-notebooklab-in-repo.tar.gz
Merge branch 'master' into notebooklab-in-reponotebooklab-in-repo
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/container_repository_spec.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/models/container_repository_spec.rb b/spec/models/container_repository_spec.rb
index 6d6c9f2adfc..eff41d85972 100644
--- a/spec/models/container_repository_spec.rb
+++ b/spec/models/container_repository_spec.rb
@@ -34,8 +34,18 @@ describe ContainerRepository do
end
describe '#path' do
- it 'returns a full path to the repository' do
- expect(repository.path).to eq('group/test/my_image')
+ context 'when project path does not contain uppercase letters' do
+ it 'returns a full path to the repository' do
+ expect(repository.path).to eq('group/test/my_image')
+ end
+ end
+
+ context 'when path contains uppercase letters' do
+ let(:project) { create(:project, path: 'MY_PROJECT', group: group) }
+
+ it 'returns a full path without capital letters' do
+ expect(repository.path).to eq('group/my_project/my_image')
+ end
end
end