Skip to content

Commit

Permalink
fix rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin committed Nov 15, 2023
1 parent 781ca6b commit e1ed3eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/dummy/app/controllers/pets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1ed3eb

Please sign in to comment.