Move directory logic out of model. Use Gitlab:Shell class to interact with file system

This commit is contained in:
Dmitriy Zaporozhets 2013-03-21 22:11:08 +02:00
parent 0103363191
commit c4299bb45a
3 changed files with 86 additions and 39 deletions

View file

@ -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