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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5395f92e
Commit
5395f92e
authored
Nov 08, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix routing spec for group controller
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
08d21fe8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/routing/routing_spec.rb
spec/routing/routing_spec.rb
+2
-2
No files found.
spec/routing/routing_spec.rb
View file @
5395f92e
...
@@ -266,13 +266,13 @@ describe "Groups", "routing" do
...
@@ -266,13 +266,13 @@ describe "Groups", "routing" do
end
end
it
"also display group#show on the short path"
do
it
"also display group#show on the short path"
do
allow
(
Group
).
to
receive
(
:find_by
_path
).
and_return
(
true
)
allow
(
Group
).
to
receive
(
:find_by
).
and_return
(
true
)
expect
(
get
(
'/1'
)).
to
route_to
(
'groups#show'
,
id:
'1'
)
expect
(
get
(
'/1'
)).
to
route_to
(
'groups#show'
,
id:
'1'
)
end
end
it
"also display group#show with dot in the path"
do
it
"also display group#show with dot in the path"
do
allow
(
Group
).
to
receive
(
:find_by
_path
).
and_return
(
true
)
allow
(
Group
).
to
receive
(
:find_by
).
and_return
(
true
)
expect
(
get
(
'/group.with.dot'
)).
to
route_to
(
'groups#show'
,
id:
'group.with.dot'
)
expect
(
get
(
'/group.with.dot'
)).
to
route_to
(
'groups#show'
,
id:
'group.with.dot'
)
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