Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/issuables_helper_spec.rb')
-rw-r--r--spec/helpers/issuables_helper_spec.rb33
1 files changed, 8 insertions, 25 deletions
diff --git a/spec/helpers/issuables_helper_spec.rb b/spec/helpers/issuables_helper_spec.rb
index 6abce4c5983..f2e88bc311d 100644
--- a/spec/helpers/issuables_helper_spec.rb
+++ b/spec/helpers/issuables_helper_spec.rb
@@ -121,27 +121,6 @@ RSpec.describe IssuablesHelper, feature_category: :team_planning do
end
end
- describe '#assigned_open_issues_count_text', feature_category: :team_planning do
- let_it_be(:user) { create(:user) }
- let_it_be(:project) { create(:project).tap { |p| p.add_developer(user) } }
-
- subject { helper.assigned_open_issues_count_text }
-
- before do
- allow(helper).to receive(:current_user).and_return(user)
- end
-
- context 'when assigned issues count is over MAX_LIMIT_FOR_ASSIGNEED_ISSUES_COUNT' do
- before do
- stub_const('User::MAX_LIMIT_FOR_ASSIGNEED_ISSUES_COUNT', 2)
- end
-
- let_it_be(:issues) { create_list(:issue, 3, project: project, assignees: [user]) }
-
- it { is_expected.to eq '1+' }
- end
- end
-
describe '#issuables_state_counter_text' do
let_it_be(:user) { create(:user) }
@@ -600,7 +579,8 @@ RSpec.describe IssuablesHelper, feature_category: :team_planning do
initial_labels: '[]',
issuable_type: issuable.issuable_type,
labels_filter_base_path: project_issues_path(project),
- labels_manage_path: project_labels_path(project)
+ labels_manage_path: project_labels_path(project),
+ supports_lock_on_merge: issuable.supports_lock_on_merge?.to_s
})
end
end
@@ -620,7 +600,8 @@ RSpec.describe IssuablesHelper, feature_category: :team_planning do
title: label.title,
description: label.description,
color: label.color,
- text_color: label.text_color
+ text_color: label.text_color,
+ lock_on_merge: label.lock_on_merge
},
{
__typename: "Label",
@@ -628,7 +609,8 @@ RSpec.describe IssuablesHelper, feature_category: :team_planning do
title: label2.title,
description: label2.description,
color: label2.color,
- text_color: label2.text_color
+ text_color: label2.text_color,
+ lock_on_merge: label.lock_on_merge
}
]
@@ -638,7 +620,8 @@ RSpec.describe IssuablesHelper, feature_category: :team_planning do
initial_labels: initial_labels.to_json,
issuable_type: issuable.issuable_type,
labels_filter_base_path: project_merge_requests_path(project),
- labels_manage_path: project_labels_path(project)
+ labels_manage_path: project_labels_path(project),
+ supports_lock_on_merge: issuable.supports_lock_on_merge?.to_s
})
end
end