Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Update select matcher to use `with_options` instead of `options`

Dombi Attila5dc12a8e25ba
diff --git a/spec/features/work_packages/bulk/update_work_package_spec.rb b/spec/features/work_packages/bulk/update_work_package_spec.rb
index 55f4629fe37..7f07d525b89 100644
--- a/spec/features/work_packages/bulk/update_work_package_spec.rb
+++ b/spec/features/work_packages/bulk/update_work_package_spec.rb
@@ -276,8 +276,8 @@ RSpec.describe 'Bulk update work packages through Rails view', :js, :with_cuprit
it 'clears the chosen values' do
# Required fields should not have a 'none' option
- expect(page).to have_no_select(required_boolean_cf.name, options: ['none'])
- expect(page).to have_no_select(required_list_cf.name, options: ['none'])
+ expect(page).to have_no_select(required_boolean_cf.name, with_options: ['none'])
+ expect(page).to have_no_select(required_list_cf.name, with_options: ['none'])
# Unset any non-required fields
select 'none', from: boolean_cf.name