new ruby file

This commit is contained in:
wing328
2016-04-14 15:49:55 +08:00
parent f4e69597e5
commit 5d4c68b98a
3 changed files with 271 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
=begin
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose.
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
License: Apache 2.0
http://www.apache.org/licenses/LICENSE-2.0.html
Terms of Service: http://swagger.io/terms/
=end
require 'spec_helper'
require 'json'
require 'date'
# Unit tests for Petstore::ApiResponse
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'ApiResponse' do
before do
# run before each test
@instance = Petstore::ApiResponse.new
end
after do
# run after each test
end
describe 'test an instance of ApiResponse' do
it 'should create an instact of ApiResponse' do
@instance.should be_a(Petstore::ApiResponse)
end
end
describe 'test attribute "code"' do
it 'should work' do
# assertion here
# should be_a()
# should be_nil
# should ==
# should_not ==
end
end
describe 'test attribute "type"' do
it 'should work' do
# assertion here
# should be_a()
# should be_nil
# should ==
# should_not ==
end
end
describe 'test attribute "message"' do
it 'should work' do
# assertion here
# should be_a()
# should be_nil
# should ==
# should_not ==
end
end
end