summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-18 17:09:58 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-18 17:09:58 +0100
commit3639ebd081a6f008c2d0824953dc37168cf59200 (patch)
tree1c0e487cde2fc196f18e7055db2a3cafca91fe66 /spec/controllers
parentf4f4a6b5303a0889f3fdb1bfe0bb014a6788c4d6 (diff)
downloadgitlab-ce-3639ebd081a6f008c2d0824953dc37168cf59200.tar.gz
Fix specs
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/tree_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/tree_controller_spec.rb b/spec/controllers/projects/tree_controller_spec.rb
index a4366e378c7..e74731c9ed8 100644
--- a/spec/controllers/projects/tree_controller_spec.rb
+++ b/spec/controllers/projects/tree_controller_spec.rb
@@ -108,7 +108,7 @@ describe Projects::TreeController do
it 'redirects to the new directory' do
expect(subject).
- to redirect_to("/#{project.path_with_namespace}/blob/#{target_branch}/#{path}")
+ to redirect_to("/#{project.path_with_namespace}/tree/#{target_branch}/#{path}")
expect(flash[:notice]).to eq('The directory has been successfully created.')
end
end
@@ -119,7 +119,7 @@ describe Projects::TreeController do
it 'does not allow overwriting of existing files' do
expect(subject).
- to redirect_to("/#{project.path_with_namespace}/blob/master")
+ to redirect_to("/#{project.path_with_namespace}/tree/master")
expect(flash[:alert]).to eq('Directory already exists as a file')
end
end