update samples and reenable ensure-up-to-date (#1304)

This commit is contained in:
William Cheng
2018-10-24 13:56:24 +08:00
committed by GitHub
parent b36b4611de
commit 3d7a019524
13 changed files with 631 additions and 2 deletions

View File

@@ -0,0 +1,44 @@
=begin
#OpenAPI Petstore
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.2-SNAPSHOT
=end
require 'spec_helper'
require 'json'
# Unit tests for Petstore::DefaultApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'DefaultApi' do
before do
# run before each test
@instance = Petstore::DefaultApi.new
end
after do
# run after each test
end
describe 'test an instance of DefaultApi' do
it 'should create an instance of DefaultApi' do
expect(@instance).to be_instance_of(Petstore::DefaultApi)
end
end
# unit tests for foo_get
# @param [Hash] opts the optional parameters
# @return [InlineResponseDefault]
describe 'foo_get test' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
end