Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Heather Harvey authored Apr 7, 2020
1 parent aa4c789 commit c1ddde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/openapi_client_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
end

it "defines singular? as true if response is not an array type and no per page param" do
json = {"parameters"=> [{"name"=>"owner", "required"=>true}], "responses"=> {"200"=> "no content"}}
json = {"parameters"=> [{"name"=>"owner", "required"=>true}], "responses"=> {"200"=> {}}}
endpoint = OpenAPIClientGenerator::Endpoint.new(OasParser::Endpoint.new(OasParser::Path.new(nil, nil, {}), "get", json), [])
expect(endpoint.singular?).to eq(true)
end
Expand Down

0 comments on commit c1ddde0

Please sign in to comment.