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

ruby.model_test.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
=begin
{{> api_info}}
=end

require 'spec_helper'
require 'json'
require 'date'

# Unit tests for {{moduleName}}::{{classname}}
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
{{#models}}{{#model}}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 instact of {{classname}}' do
      @instance.should be_a({{moduleName}}::{{classname}}) 
    end
  end
{{#vars}}
  describe 'test attribute "{{{name}}}"' do
    it 'should work' do
       # assertion here
       # should be_a()
       # should be_nil
       # should ==
       # should_not ==
    end
  end

{{/vars}}
end
{{/model}}{{/models}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy