From d9703fa46f562881005ee27dc2c494cc9fcd405d Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Mon, 12 Jan 2026 17:44:20 +0100 Subject: [PATCH] singularize type in custom field format shared spec --- .../admin/custom_fields/shared_custom_field_expectations.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/custom_fields/shared_custom_field_expectations.rb b/spec/features/admin/custom_fields/shared_custom_field_expectations.rb index 11e1b386d60..1fa1e48b46d 100644 --- a/spec/features/admin/custom_fields/shared_custom_field_expectations.rb +++ b/spec/features/admin/custom_fields/shared_custom_field_expectations.rb @@ -125,14 +125,15 @@ RSpec.shared_examples_for "hierarchy custom fields on index page" do |type| end end -RSpec.shared_examples_for "expected fields for the custom field's format", :aggregate_failures do |type, format| +RSpec.shared_examples_for "expected fields for the custom field's format", :aggregate_failures do |type_plural, format| + let(:type) { type_plural.singularize } let(:cf_page) { Pages::CustomFields::Index.new } let(:user) { create(:admin) } current_user { user } before do - cf_page.visit_page type + cf_page.visit_page type_plural end def expect_page_to_have(selectors)