diff --git a/spec/lib/swagger/swagger_dsl_spec.rb b/spec/lib/swagger/swagger_dsl_spec.rb index da5b6c19b..4ee102aac 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