forked from loafle/openapi-generator-original
add new ruby files
This commit is contained in:
66
samples/client/petstore/ruby/spec/api/fake_api_spec.rb
Normal file
66
samples/client/petstore/ruby/spec/api/fake_api_spec.rb
Normal file
@@ -0,0 +1,66 @@
|
||||
=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'
|
||||
|
||||
# Unit tests for Petstore::FakeApi
|
||||
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
||||
# Please update as you see appropriate
|
||||
describe 'FakeApi' do
|
||||
before do
|
||||
# run before each test
|
||||
@instance = Petstore::FakeApi.new
|
||||
end
|
||||
|
||||
after do
|
||||
# run after each test
|
||||
end
|
||||
|
||||
describe 'test an instance of FakeApi' do
|
||||
it 'should create an instact of FakeApi' do
|
||||
@instance.should be_a(Petstore::FakeApi)
|
||||
end
|
||||
end
|
||||
|
||||
# unit tests for test_endpoint_parameters
|
||||
# Fake endpoint for testing various parameters
|
||||
# Fake endpoint for testing various parameters
|
||||
# @param number None
|
||||
# @param double None
|
||||
# @param string None
|
||||
# @param byte None
|
||||
# @param [Hash] opts the optional parameters
|
||||
# @option opts [Integer] :integer None
|
||||
# @option opts [Integer] :int32 None
|
||||
# @option opts [Integer] :int64 None
|
||||
# @option opts [Float] :float None
|
||||
# @option opts [String] :binary None
|
||||
# @option opts [Date] :date None
|
||||
# @option opts [DateTime] :date_time None
|
||||
# @option opts [String] :password None
|
||||
# @return [nil]
|
||||
describe 'test_endpoint_parameters test' do
|
||||
it "should work" do
|
||||
# assertion here
|
||||
# should be_a()
|
||||
# should be_nil
|
||||
# should ==
|
||||
# should_not ==
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user