mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 13:22:45 +00:00
update samples and reenable ensure-up-to-date (#1304)
This commit is contained in:
44
samples/client/petstore/ruby/spec/api/default_api_spec.rb
Normal file
44
samples/client/petstore/ruby/spec/api/default_api_spec.rb
Normal 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
|
||||
Reference in New Issue
Block a user