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
0578ab6a
Commit
0578ab6a
authored
Feb 01, 2019
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EpicsHelper specs
parent
80da247a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ee/app/helpers/epics_helper.rb
ee/app/helpers/epics_helper.rb
+2
-0
ee/spec/helpers/epics_helper_spec.rb
ee/spec/helpers/epics_helper_spec.rb
+2
-2
No files found.
ee/app/helpers/epics_helper.rb
View file @
0578ab6a
# frozen_string_literal: true
# frozen_string_literal: true
module
EpicsHelper
module
EpicsHelper
# rubocop: disable Metrics/AbcSize
def
epic_show_app_data
(
epic
,
opts
)
def
epic_show_app_data
(
epic
,
opts
)
group
=
epic
.
group
group
=
epic
.
group
todo
=
epic_pending_todo
(
epic
)
todo
=
epic_pending_todo
(
epic
)
...
@@ -59,6 +60,7 @@ module EpicsHelper
...
@@ -59,6 +60,7 @@ module EpicsHelper
epics_web_url:
group_epics_path
(
group
)
epics_web_url:
group_epics_path
(
group
)
}
}
end
end
# rubocop: enable Metrics/AbcSize
def
epic_pending_todo
(
epic
)
def
epic_pending_todo
(
epic
)
current_user
.
pending_todo_for
(
epic
)
if
current_user
current_user
.
pending_todo_for
(
epic
)
if
current_user
...
...
ee/spec/helpers/epics_helper_spec.rb
View file @
0578ab6a
...
@@ -39,7 +39,7 @@ describe EpicsHelper do
...
@@ -39,7 +39,7 @@ describe EpicsHelper do
start_date_sourcing_milestone_title start_date_sourcing_milestone_dates
start_date_sourcing_milestone_title start_date_sourcing_milestone_dates
due_date due_date_is_fixed due_date_fixed due_date_from_milestones due_date_sourcing_milestone_title
due_date due_date_is_fixed due_date_fixed due_date_from_milestones due_date_sourcing_milestone_title
due_date_sourcing_milestone_dates end_date state namespace labels_path toggle_subscription_path
due_date_sourcing_milestone_dates end_date state namespace labels_path toggle_subscription_path
labels_web_url epics_web_url
labels_web_url epics_web_url
lock_version
]
)
]
)
expect
(
meta_data
[
'author'
]).
to
eq
({
expect
(
meta_data
[
'author'
]).
to
eq
({
'name'
=>
user
.
name
,
'name'
=>
user
.
name
,
...
@@ -90,7 +90,7 @@ describe EpicsHelper do
...
@@ -90,7 +90,7 @@ describe EpicsHelper do
start_date_sourcing_milestone_title start_date_sourcing_milestone_dates
start_date_sourcing_milestone_title start_date_sourcing_milestone_dates
due_date due_date_is_fixed due_date_fixed due_date_from_milestones due_date_sourcing_milestone_title
due_date due_date_is_fixed due_date_fixed due_date_from_milestones due_date_sourcing_milestone_title
due_date_sourcing_milestone_dates end_date state namespace labels_path toggle_subscription_path
due_date_sourcing_milestone_dates end_date state namespace labels_path toggle_subscription_path
labels_web_url epics_web_url
labels_web_url epics_web_url
lock_version
]
)
]
)
expect
(
meta_data
[
'start_date'
]).
to
eq
(
'2000-01-01'
)
expect
(
meta_data
[
'start_date'
]).
to
eq
(
'2000-01-01'
)
expect
(
meta_data
[
'start_date_sourcing_milestone_title'
]).
to
eq
(
milestone1
.
title
)
expect
(
meta_data
[
'start_date_sourcing_milestone_title'
]).
to
eq
(
milestone1
.
title
)
...
...
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