From e1ed3eb725136a5aac06a6db87d764092b0fcda1 Mon Sep 17 00:00:00 2001 From: Mathieu Jobin <99191+mathieujobin@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:36:16 +0900 Subject: [PATCH] fix rubocop issues --- spec/dummy/app/controllers/pets_controller.rb | 2 +- .../apipie/generator/swagger/param_description/builder_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/dummy/app/controllers/pets_controller.rb b/spec/dummy/app/controllers/pets_controller.rb index b4828300a..7935215c8 100644 --- a/spec/dummy/app/controllers/pets_controller.rb +++ b/spec/dummy/app/controllers/pets_controller.rb @@ -23,7 +23,7 @@ class PetsController < ApplicationController #----------------------------------------------------------- api :GET, "/pets/:id/as_properties", "Get a pet record" returns :code => 200 do - property :pet_name, String, :desc => "Name of pet", :required => false, example: 'mypet' + property :pet_name, String, :desc => "Name of pet", :required => false, :example => 'mypet' property :animal_type, %w[dog cat iguana kangaroo], :desc => "Type of pet" # required by default, because this is a 'property' end returns :code => 404 do diff --git a/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb b/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb index 29e8d9d77..09175fbd0 100644 --- a/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb +++ b/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb @@ -207,7 +207,7 @@ it { is_expected.to be_blank } context 'when example is assigned' do - let(:base_param_description_options) { { example: 'example'} } + let(:base_param_description_options) { { example: 'example' } } it { is_expected.to eq('example') } end