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.
2 parents 0e9e204 + c70ca9d commit baca302Copy full SHA for baca302
samples/client/petstore/ruby/spec/pet_spec.rb
@@ -116,5 +116,14 @@
116
# nothing is returned
117
result.should be_nil
118
end
119
+
120
+ it "should upload a file with form parameter to a pet" do
121
+ pet = Petstore::Pet.new('id' => 10002, 'name' => 'RUBY UNIT TESTING')
122
+ result = @pet_api.add_pet(body: pet)
123
+ result.should be_nil
124
125
+ result = @pet_api.upload_file(10002, file: File.new('hello.txt'), additional_metadata: 'metadata')
126
127
+ end
128
129
0 commit comments