diff options
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index 1f1d66150fb..d0de4a7b7fb 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -55,9 +55,10 @@ describe Namespace do describe :move_dir do before do @namespace = create :namespace + @namespace.stub(path_changed?: true) end - it "should raise error when called directly" do + it "should raise error when dirtory exists" do expect { @namespace.move_dir }.to raise_error("Already exists") end |