diff options
author | Eagllus <rvanzon@gitlab.com> | 2018-10-26 13:43:28 +0200 |
---|---|---|
committer | Eagllus <rvanzon@gitlab.com> | 2018-10-26 13:43:28 +0200 |
commit | 3b70cf69188b9906098df5bd984e9337f16e1080 (patch) | |
tree | 5aa88597163100d29e2afb135c30cca8a0d7d58b /spec/models/milestone_spec.rb | |
parent | 0ff5b0f45361cf9fe622cc3265b943a999c14d0e (diff) | |
download | gitlab-ce-3b70cf69188b9906098df5bd984e9337f16e1080.tar.gz |
Update MR based on Sean's feedbackrz_fix_milestone_count
Diffstat (limited to 'spec/models/milestone_spec.rb')
-rw-r--r-- | spec/models/milestone_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb index 651f0540824..d11eb46159e 100644 --- a/spec/models/milestone_spec.rb +++ b/spec/models/milestone_spec.rb @@ -351,12 +351,12 @@ describe Milestone do describe '.states_count' do context 'when the projects have milestones' do - let(:project_1) { create(:project) } - let(:project_2) { create(:project) } - let(:group_1) { create(:group) } - let(:group_2) { create(:group) } - before do + project_1 = create(:project) + project_2 = create(:project) + group_1 = create(:group) + group_2 = create(:group) + create(:active_milestone, title: 'Active Group Milestone', project: project_1) create(:closed_milestone, title: 'Closed Group Milestone', project: project_1) create(:active_milestone, title: 'Active Group Milestone', project: project_2) |