diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-10-04 10:58:34 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-10-04 10:58:34 +0300 |
commit | c958c201b72577eb01662cc1dac0f253e3d3e6db (patch) | |
tree | 26f52060490aaee5c2695e34c57b812383d834a3 /spec/views | |
parent | 912e6b0b3d887b86bf41066062376438d3377da7 (diff) | |
parent | ba4a442996d322ca736c97ff6e7f7fdf3860d36a (diff) |
Merge branch '31050-registry-image-lists' into 'master'
Lazy load and paginate registry image list
Closes #31050
See merge request gitlab-org/gitlab-ce!14303
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/registry/repositories/index.html.haml_spec.rb | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/views/projects/registry/repositories/index.html.haml_spec.rb b/spec/views/projects/registry/repositories/index.html.haml_spec.rb deleted file mode 100644 index cf0aa44a4a2..00000000000 --- a/spec/views/projects/registry/repositories/index.html.haml_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'spec_helper' - -describe 'projects/registry/repositories/index' do - let(:group) { create(:group, path: 'group') } - let(:project) { create(:project, group: group, path: 'test') } - - let(:repository) do - create(:container_repository, project: project, name: 'image') - end - - before do - stub_container_registry_config(enabled: true, - host_port: 'registry.gitlab', - api_url: 'http://registry.gitlab') - - stub_container_registry_tags(repository: :any, tags: [:latest]) - - assign(:project, project) - assign(:images, [repository]) - - allow(view).to receive(:can?).and_return(true) - end - - it 'contains container repository path' do - render - - expect(rendered).to have_content 'group/test/image' - end - - it 'contains attribute for copying tag location into clipboard' do - render - - expect(rendered).to have_css 'button[data-clipboard-text="docker pull ' \ - 'registry.gitlab/group/test/image:latest"]' - end -end |