diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 18:08:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 18:08:51 +0300 |
commit | 163a7046ac76eb4109184e82ce0af911633e6626 (patch) | |
tree | 9f22bb438db435d518e8f5520b309c6319ae0bd8 /spec/helpers/labels_helper_spec.rb | |
parent | 0637ba1e6e9024f35b2cbf561d9002ec17350bb3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/labels_helper_spec.rb')
-rw-r--r-- | spec/helpers/labels_helper_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/helpers/labels_helper_spec.rb b/spec/helpers/labels_helper_spec.rb index 7ad554fd618..f5771405687 100644 --- a/spec/helpers/labels_helper_spec.rb +++ b/spec/helpers/labels_helper_spec.rb @@ -35,7 +35,7 @@ describe LabelsHelper do end context 'with a group label' do - set(:group) { create(:group) } + let_it_be(:group) { create(:group) } let(:label) { create(:group_label, group: group, title: 'bug') } context 'when asking for an issue link' do @@ -135,7 +135,7 @@ describe LabelsHelper do end describe 'create_label_title' do - set(:group) { create(:group) } + let_it_be(:group) { create(:group) } context 'with a group as subject' do it 'returns "Create group label"' do @@ -144,7 +144,7 @@ describe LabelsHelper do end context 'with a project as subject' do - set(:project) { create(:project, namespace: group) } + let_it_be(:project) { create(:project, namespace: group) } it 'returns "Create project label"' do expect(create_label_title(project)).to eq _('Create project label') @@ -159,7 +159,7 @@ describe LabelsHelper do end describe 'manage_labels_title' do - set(:group) { create(:group) } + let_it_be(:group) { create(:group) } context 'with a group as subject' do it 'returns "Manage group labels"' do @@ -168,7 +168,7 @@ describe LabelsHelper do end context 'with a project as subject' do - set(:project) { create(:project, namespace: group) } + let_it_be(:project) { create(:project, namespace: group) } it 'returns "Manage project labels"' do expect(manage_labels_title(project)).to eq _('Manage project labels') @@ -183,7 +183,7 @@ describe LabelsHelper do end describe 'view_labels_title' do - set(:group) { create(:group) } + let_it_be(:group) { create(:group) } context 'with a group as subject' do it 'returns "View group labels"' do @@ -192,7 +192,7 @@ describe LabelsHelper do end context 'with a project as subject' do - set(:project) { create(:project, namespace: group) } + let_it_be(:project) { create(:project, namespace: group) } it 'returns "View project labels"' do expect(view_labels_title(project)).to eq _('View project labels') |