Commit 0578ab6a authored by Brett Walker's avatar Brett Walker

Fix EpicsHelper specs

parent 80da247a
# frozen_string_literal: true
module EpicsHelper
# rubocop: disable Metrics/AbcSize
def epic_show_app_data(epic, opts)
group = epic.group
todo = epic_pending_todo(epic)
......@@ -59,6 +60,7 @@ module EpicsHelper
epics_web_url: group_epics_path(group)
}
end
# rubocop: enable Metrics/AbcSize
def epic_pending_todo(epic)
current_user.pending_todo_for(epic) if current_user
......
......@@ -39,7 +39,7 @@ describe EpicsHelper do
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_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({
'name' => user.name,
......@@ -90,7 +90,7 @@ describe EpicsHelper do
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_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_sourcing_milestone_title']).to eq(milestone1.title)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment