=begin
#Swagger Petstore

#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\

OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.0-SNAPSHOT

=end

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

# Unit tests for Petstore::FormatTest
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'FormatTest' do
  before do
    # run before each test
    @instance = Petstore::FormatTest.new
  end

  after do
    # run after each test
  end

  describe 'test an instance of FormatTest' do
    it 'should create an instance of FormatTest' do
      expect(@instance).to be_instance_of(Petstore::FormatTest)
    end
  end
  describe 'test attribute "integer"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "int32"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "int64"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "number"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "float"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "double"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "string"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "byte"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "binary"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "date"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "date_time"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "uuid"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "password"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "pattern_with_digits"' do
    it 'should accept string "1234567890"' do
      @instance.pattern_with_digits = '1234567890'
    end

    it 'should accept string with leading zero "0123456789"' do
      @instance.pattern_with_digits = '0123456789'
    end

    it 'should reject string with non digits "ABC3456789"' do
      expect {@instance.pattern_with_digits = 'ABC3456789'}.to raise_error(ArgumentError)
    end

    it 'should reject string less than 10 in length "123456789"' do
      expect {@instance.pattern_with_digits = '123456789'}.to raise_error(ArgumentError)
    end

    it 'should reject string more than 10 in length "0123456789123"' do
      expect {@instance.pattern_with_digits = '0123456789123'}.to raise_error(ArgumentError)
    end
  end

  describe 'test attribute "pattern_with_digits_and_delimiter"' do
    it 'should accept string "Image_01"' do
      @instance.pattern_with_digits_and_delimiter = 'Image_01'
    end
  end
end
