Sha256: 72b1289c003a72ab6e9992f3b206d2231a1891ebb7b783f51a3d2f81ef556135

Contents?: true

Size: 1.29 KB

Versions: 33

Compression:

Stored size: 1.29 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}}
  {{/summary}}
  {{#notes}}
  # {{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}}}{{/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

33 entries across 33 versions & 2 rubygems

Version Path
mux_ruby-3.2.0 gen/templates/api_test.mustache
mux_ruby-3.1.0 gen/templates/api_test.mustache
mux_ruby-3.0.0 gen/templates/api_test.mustache
mux_ruby-2.2.0 gen/templates/api_test.mustache
mux_ruby-2.1.1 gen/templates/api_test.mustache
mux_ruby-2.1.0 gen/templates/api_test.mustache
mux_ruby-2.0.0 gen/templates/api_test.mustache
datadog_api_client-1.2.0 .generator/templates/api_test.mustache
mux_ruby-2.0.0.pre.rc.2 gen/templates/api_test.mustache
datadog_api_client-1.1.0 .generator/templates/api_test.mustache
mux_ruby-2.0.0.pre.rc.1 gen/templates/api_test.mustache
datadog_api_client-1.0.0 .generator/templates/api_test.mustache
datadog_api_client-1.0.0.beta.3 .generator/templates/api_test.mustache