diff options
author | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-07-16 18:17:21 +0300 |
---|---|---|
committer | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-07-16 19:45:15 +0300 |
commit | 18535eb411887ac8283cc24b8ed1e384d3aabcc1 (patch) | |
tree | 7c08d43d993c463f7999099d31569175b86b1cf0 /spec/models/cycle_analytics | |
parent | e6c61c89527eb1a8f0f8affff5a76c81af656d8e (diff) |
Add code review remarks
Change small things for better readability
Diffstat (limited to 'spec/models/cycle_analytics')
-rw-r--r-- | spec/models/cycle_analytics/group_level_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/cycle_analytics/group_level_spec.rb b/spec/models/cycle_analytics/group_level_spec.rb index 70c370bc39d..154c1b9c0f8 100644 --- a/spec/models/cycle_analytics/group_level_spec.rb +++ b/spec/models/cycle_analytics/group_level_spec.rb @@ -12,10 +12,10 @@ describe CycleAnalytics::GroupLevel do let(:mr) { create_merge_request_closing_issue(user, project, issue, commit_message: "References #{issue.to_reference}") } let(:pipeline) { create(:ci_empty_pipeline, status: 'created', project: project, ref: mr.source_branch, sha: mr.source_branch_sha, head_pipeline_of: mr) } - subject { described_class.new(options: { from: from_date, group: group, current_user: user }) } + subject { described_class.new(group: group, options: { from: from_date, current_user: user }) } describe '#permissions' do - it 'returns permissions' do + it 'returns true for all stages' do expect(subject.permissions.values.uniq).to eq([true]) end end |