We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50a767e commit 8bf84aaCopy full SHA for 8bf84aa
samples/client/petstore/ruby/spec/pet_spec.rb
@@ -75,7 +75,9 @@
75
76
it "should create a pet" do
77
pet = SwaggerClient::Pet.new('id' => 10002, 'name' => "RUBY UNIT TESTING")
78
- SwaggerClient::PetApi.add_pet(:body => pet)
+ result = SwaggerClient::PetApi.add_pet(:body => pet)
79
+ # nothing is returned
80
+ result.should be_nil
81
82
pet = SwaggerClient::PetApi.get_pet_by_id(10002)
83
pet.id.should == 10002
0 commit comments