Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
3639ebd0
Commit
3639ebd0
authored
Dec 18, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs
parent
f4f4a6b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/controllers/projects/tree_controller_spec.rb
spec/controllers/projects/tree_controller_spec.rb
+2
-2
No files found.
spec/controllers/projects/tree_controller_spec.rb
View file @
3639ebd0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment