All Downloads are FREE. Search and download functionalities are using the official Maven repository.

handlebars.ruby.api_test.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
=begin
{{> api_info}}
=end

require 'spec_helper'
require 'json'

# Unit tests for {{moduleName}}::{{classname}}
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
{{#operations}}describe '{{classname}}' do
  before do
    # run before each test
    @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(@instance).to be_instance_of({{moduleName}}::{{classname}})
    end
  end

{{#operation}}
{{#contents}}
  # unit tests for {{operationId}}
  {{#summary}}
  # {{summary}}
  {{/summary}}
  {{#notes}}
  # {{notes}}
  {{/notes}}
{{#parameters}}{{#required}}  # @param {{paramName}} {{description}}
{{/required}}{{/parameters}}  # @param [Hash] opts the optional parameters
{{#parameters}}{{^required}}  # @option opts [{{{dataType}}}] :{{paramName}} {{description}}
{{/required}}{{/parameters}}  # @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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy