summaryrefslogtreecommitdiff
path: root/spec/models/namespace_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 21:25:52 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 21:25:52 +0200
commit1d6ddb05bb12dce9e90c76b73a22a21082506091 (patch)
treeb3c3e5f80fef4eb8b0efcc06d9ec2f3cb0755e68 /spec/models/namespace_spec.rb
parentd2a9c5d81fce78540cf2c2a70f020fc0b234ce5a (diff)
downloadgitlab-ce-1d6ddb05bb12dce9e90c76b73a22a21082506091.tar.gz
Fix namespace specs related to container registry
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r--spec/models/namespace_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb
index 197fd558dd7..a7e565ec645 100644
--- a/spec/models/namespace_spec.rb
+++ b/spec/models/namespace_spec.rb
@@ -161,7 +161,9 @@ describe Namespace, models: true do
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 images in container registry') }
+ it 'raises an error about not movable project' do
+ expect { @namespace.move_dir }.to raise_error(/Namespace cannot be moved/)
+ end
end
context 'renaming a sub-group' do