diff options
author | Andre Guedes <andrebsguedes@gmail.com> | 2016-12-16 06:24:05 +0300 |
---|---|---|
committer | Andre Guedes <andrebsguedes@gmail.com> | 2017-02-22 17:30:11 +0300 |
commit | e4fa80f3b67f1ef30c262cd4df28516ccff6336a (patch) | |
tree | 225b64223d018ca259fcfabd6b725918dfe4d126 /spec/models/namespace_spec.rb | |
parent | 246df2bd1151d39a04ef553064144eb75ee3e980 (diff) |
Fixes broken and missing tests
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index 35d932f1c64..aeb4eeb0b55 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -134,18 +134,20 @@ describe Namespace, models: true do expect(@namespace.move_dir).to be_truthy end - context "when any project has container tags" do + context "when any project has container images" do + let(:container_image) { create(:container_image) } + before do stub_container_registry_config(enabled: true) stub_container_registry_tags('tag') - create(:empty_project, namespace: @namespace) + create(:empty_project, namespace: @namespace, container_images: [container_image]) allow(@namespace).to receive(:path_was).and_return(@namespace.path) allow(@namespace).to receive(:path).and_return('new_path') end - it { expect { @namespace.move_dir }.to raise_error('Namespace cannot be moved, because at least one project has tags in container registry') } + it { expect { @namespace.move_dir }.to raise_error('Namespace cannot be moved, because at least one project has images in container registry') } end end |