Commit 1d6ddb05 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix namespace specs related to container registry

parent d2a9c5d8
...@@ -161,7 +161,9 @@ describe Namespace, models: true do ...@@ -161,7 +161,9 @@ describe Namespace, models: true do
allow(@namespace).to receive(:path).and_return('new_path') allow(@namespace).to receive(:path).and_return('new_path')
end 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 end
context 'renaming a sub-group' do context 'renaming a sub-group' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment