Sha256: 8be9c02ff2b17a6fce1778f11193f1579f6165d110f9ba70f8b19e33cfeb9755
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true # 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 let(:instance) { {{moduleName}}::{{classname}}.new } 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}} # unit tests for {{operationId}} # {{summary}} # {{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' end {{/operation}} end {{/operations}}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
noths-0.2.1 | templates/api_test.mustache |
noths-0.2.0 | templates/api_test.mustache |