diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 18:21:59 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 18:26:31 +0530 |
commit | 231a9f5b8788aa0bbb2fa304f8b937f7c09fcee1 (patch) | |
tree | fbaebf9301e8352a750af0939b3fc1ac8a231093 /spec/models | |
parent | 71d4bf721be6cd57ab3480bc5efb11a91d6e1891 (diff) | |
download | gitlab-ce-231a9f5b8788aa0bbb2fa304f8b937f7c09fcee1.tar.gz |
Fix rubocop spec.
And `scss_lint`
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/cycle_analytics/plan_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/models/cycle_analytics/plan_spec.rb b/spec/models/cycle_analytics/plan_spec.rb index aa779e5050f..4a66615e53b 100644 --- a/spec/models/cycle_analytics/plan_spec.rb +++ b/spec/models/cycle_analytics/plan_spec.rb @@ -7,8 +7,12 @@ describe 'CycleAnalytics#plan', feature: true do subject { CycleAnalytics.new(project, from: from_date) } generate_cycle_analytics_spec(phase: :plan, - data_fn: -> (context) { { issue: context.create(:issue, project: context.project), - branch_name: context.random_git_name } }, + data_fn: -> (context) do + { + issue: context.create(:issue, project: context.project), + branch_name: context.random_git_name + } + end, start_time_conditions: [["issue associated with a milestone", -> (context, data) { data[:issue].update(milestone: context.create(:milestone, project: context.project)) }], ["list label added to issue", -> (context, data) { data[:issue].update(label_ids: [context.create(:label, lists: [context.create(:list)]).id]) }]], end_time_conditions: [["issue mentioned in a commit", -> (context, data) { context.create_commit_referencing_issue(data[:issue], branch_name: data[:branch_name]) }]], |