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
5bf5e35a
Commit
5bf5e35a
authored
Oct 08, 2019
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate fixtures data for tasks_by_type
parent
6b043e7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
ee/spec/frontend/fixtures/analytics.rb
ee/spec/frontend/fixtures/analytics.rb
+22
-1
No files found.
ee/spec/frontend/fixtures/analytics.rb
View file @
5bf5e35a
...
...
@@ -103,4 +103,25 @@ describe 'Analytics (JavaScript fixtures)', :sidekiq_inline do
expect
(
response
).
to
be_successful
end
end
end
describe
Analytics
::
TasksByTypeController
,
type: :controller
do
render_views
before
do
stub_licensed_features
(
type_of_work_analytics:
true
)
stub_feature_flags
(
Gitlab
::
Analytics
::
TASKS_BY_TYPE_CHART_FEATURE_FLAG
=>
true
)
group
.
add_maintainer
(
user
)
sign_in
(
user
)
end
it
'analytics/tasks_by_type.json'
do
params
=
{
group_id:
group
.
full_path
,
label_ids:
[
1
,
2
],
created_after:
'2018-01-01'
,
created_before:
'2019-01-01'
}
get
(
:show
,
params:
params
,
format: :json
)
expect
(
response
).
to
be_successful
end
end
end
\ No newline at end of file
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