From 6bb921d7e65b4d54658729f171b24def33918772 Mon Sep 17 00:00:00 2001 From: m-nakamura145 Date: Sat, 3 Feb 2024 22:02:39 +0900 Subject: [PATCH] Fix Capybara/NegationMatcher warning using auto-correct --- spec/lib/swagger/swagger_dsl_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/swagger/swagger_dsl_spec.rb b/spec/lib/swagger/swagger_dsl_spec.rb index da5b6c19..4ee102aa 100644 --- a/spec/lib/swagger/swagger_dsl_spec.rb +++ b/spec/lib/swagger/swagger_dsl_spec.rb @@ -283,7 +283,7 @@ def have_field?(field, expected_name, breadcrumb) expect(schema).to have_field(:pet_id, 'number', {:description => 'id of pet'}) expect(schema).to have_field(:pet_name, 'string', {:description => 'Name of pet', :required => false}) expect(schema).to have_field(:animal_type, 'string', {:description => 'Type of pet', :enum => %w[dog cat iguana kangaroo]}) - expect(schema).not_to have_field(:partial_match_allowed, 'boolean', {:required => false}) + expect(schema).to have_no_field(:partial_match_allowed, 'boolean', {:required => false}) end it "creates a swagger definition with all input parameters" do