Move directory logic out of model. Use Gitlab:Shell class to interact with file system
This commit is contained in:
parent
0103363191
commit
c4299bb45a
3 changed files with 86 additions and 39 deletions
|
@ -60,7 +60,7 @@ describe Namespace do
|
|||
end
|
||||
|
||||
it "should raise error when dirtory exists" do
|
||||
expect { @namespace.move_dir }.to raise_error("Already exists")
|
||||
expect { @namespace.move_dir }.to raise_error("namespace directory cannot be moved")
|
||||
end
|
||||
|
||||
it "should move dir if path changed" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue