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

crystal.api_test.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
# {{#lambdaPrefixWithHash}}{{> api_info}}{{/lambdaPrefixWithHash}}

require "../spec_helper"
require "json"
require "time"

# Unit tests for {{moduleName}}::{{classname}}
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
{{#operations}}describe "{{classname}}" do
  describe "test an instance of {{classname}}" do
    it "should create an instance of {{classname}}" do
      api_instance = {{moduleName}}::{{classname}}.new
      # TODO 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://crystal-lang.org/reference/guides/testing.html
    end
  end

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy