diff --git a/spec/dummy/app/controllers/pets_controller.rb b/spec/dummy/app/controllers/pets_controller.rb index b4828300..7935215c 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 29e8d9d7..09175fbd 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