Sha256: deabb8ee9167e2374ae2489d00ae9619ddf0c17fc51781059c889b9a95ebd71d

Contents?: true

Size: 1.25 KB

Versions: 19

Compression:

Stored size: 1.25 KB

Contents

=begin
{{> api_info}}
=end

require 'spec_helper'
require 'json'

# Unit tests for {{moduleName}}::{{classname}}
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
{{#operations}}describe '{{classname}}' do
  before do
    # run before each test
    @api_instance = {{moduleName}}::{{classname}}.new
  end

  after do
    # run after each test
  end

  describe 'test an instance of {{classname}}' do
    it 'should create an instance of {{classname}}' do
      expect(@api_instance).to be_instance_of({{moduleName}}::{{classname}})
    end
  end

{{#operation}}
  # unit tests for {{operationId}}
  {{#summary}}
  # {{.}}
  {{/summary}}
  {{#notes}}
  # {{.}}
  {{/notes}}
{{#allParams}}{{#required}}  # @param {{paramName}} {{description}}
{{/required}}{{/allParams}}  # @param [Hash] opts the optional parameters
{{#allParams}}{{^required}}  # @option opts [{{{dataType}}}] :{{paramName}} {{description}}
{{/required}}{{/allParams}}  # @return [{{{returnType}}}{{^returnType}}nil{{/returnType}}]
  describe '{{operationId}} test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

{{/operation}}
end
{{/operations}}

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
dropbox-sign-1.4.1 templates/api_test.mustache
ruby-linstor-client-1.1.1 generator/template/api_test.mustache
dropbox-sign-1.4.0 templates/api_test.mustache
dropbox-sign-1.3.0 templates/api_test.mustache
dropbox-sign-1.2.0 templates/api_test.mustache
dropbox-sign-1.1.2 templates/api_test.mustache
dropbox-sign-1.1.1 templates/api_test.mustache
dropbox-sign-1.1.0 templates/api_test.mustache
dropbox-sign-1.0.1 templates/api_test.mustache
dropbox-sign-1.0.0 templates/api_test.mustache
dropbox-sign-1.0.0.pre.beta2301 templates/api_test.mustache
hellosign-ruby-sdk-6.0.0.pre.beta templates/api_test.mustache
ruby-linstor-client-1.1.0 generator/template/api_test.mustache
datadog_api_client-1.7.0 .generator/templates/api_test.mustache
datadog_api_client-1.6.0 .generator/templates/api_test.mustache
ruby-linstor-client-1.0.0 generator/template/api_test.mustache
datadog_api_client-1.5.0 .generator/templates/api_test.mustache
datadog_api_client-1.4.0 .generator/templates/api_test.mustache
datadog_api_client-1.3.0 .generator/templates/api_test.mustache