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
Boxiang Sun
gitlab-ce
Commits
c948babf
Commit
c948babf
authored
Apr 26, 2019
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs to group routing spec
parent
265b7894
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
spec/routing/group_routing_spec.rb
spec/routing/group_routing_spec.rb
+14
-0
No files found.
spec/routing/group_routing_spec.rb
View file @
c948babf
...
...
@@ -133,5 +133,19 @@ describe "Groups", "routing" do
let
(
:resource
)
{
create
(
:group
,
parent:
parent
,
path:
'activity'
)
}
end
end
describe
'subgroup "boards"'
do
it
'shows group show page'
do
allow
(
Group
).
to
receive
(
:find_by_full_path
).
with
(
'gitlabhq/boards'
,
any_args
).
and_return
(
true
)
expect
(
get
(
'/groups/gitlabhq/boards'
)).
to
route_to
(
'groups#show'
,
id:
'gitlabhq/boards'
)
end
it
'shows boards index page'
do
allow
(
Group
).
to
receive
(
:find_by_full_path
).
with
(
'gitlabhq'
,
any_args
).
and_return
(
true
)
expect
(
get
(
'/groups/gitlabhq/-/boards'
)).
to
route_to
(
'groups/boards#index'
,
group_id:
'gitlabhq'
)
end
end
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