diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-27 16:04:38 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-27 16:04:38 +0200 |
commit | f09e3fe85116743c0cb537fb958a8b0ab1ad19fb (patch) | |
tree | 978076fd205fa0132610bb8c3a02dcc962127189 | |
parent | 1a4c60ef57d047dab6aa823f7cc50548897b74f6 (diff) | |
download | gitlab-ce-f09e3fe85116743c0cb537fb958a8b0ab1ad19fb.tar.gz |
Add a few pending specs for container repository
-rw-r--r-- | spec/models/container_repository_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/models/container_repository_spec.rb b/spec/models/container_repository_spec.rb index e3180e01758..296b9e713a8 100644 --- a/spec/models/container_repository_spec.rb +++ b/spec/models/container_repository_spec.rb @@ -92,4 +92,29 @@ describe ContainerRepository do end end end + + describe '#from_repository_path' do + context 'when received multi-level repository path' do + let(:repository) do + described_class.from_repository_path('group/test/some/image/name') + end + + pending 'fabricates object within a correct project' do + expect(repository.project).to eq project + end + + pending 'it fabricates project with a correct name' do + expect(repository.name).to eq 'some/image/name' + end + end + + context 'when path contains too many nodes' do + end + + context 'when received multi-level repository with nested groups' do + end + + context 'when received root repository path' do + end + end end |