=begin #Square Connect API OpenAPI spec version: 2.0 Contact: developers@squareup.com Generated by: https://github.com/swagger-api/swagger-codegen.git =end require 'spec_helper' require 'json' require 'date' # Unit tests for SquareConnect::MeasurementUnit # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'MeasurementUnit' do before do # run before each test @instance = SquareConnect::MeasurementUnit.new end after do # run after each test end describe 'test an instance of MeasurementUnit' do it 'should create an instact of MeasurementUnit' do expect(@instance).to be_instance_of(SquareConnect::MeasurementUnit) end end describe 'test attribute "custom_unit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "area_unit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IMPERIAL_ACRE", "IMPERIAL_SQUARE_INCH", "IMPERIAL_SQUARE_FOOT", "IMPERIAL_SQUARE_YARD", "IMPERIAL_SQUARE_MILE", "METRIC_SQUARE_CENTIMETER", "METRIC_SQUARE_METER", "METRIC_SQUARE_KILOMETER"]) #validator.allowable_values.each do |value| # expect { @instance.area_unit = value }.not_to raise_error #end end end describe 'test attribute "length_unit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IMPERIAL_INCH", "IMPERIAL_FOOT", "IMPERIAL_YARD", "IMPERIAL_MILE", "METRIC_MILLIMETER", "METRIC_CENTIMETER", "METRIC_METER", "METRIC_KILOMETER"]) #validator.allowable_values.each do |value| # expect { @instance.length_unit = value }.not_to raise_error #end end end describe 'test attribute "volume_unit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["GENERIC_FLUID_OUNCE", "GENERIC_SHOT", "GENERIC_CUP", "GENERIC_PINT", "GENERIC_QUART", "GENERIC_GALLON", "IMPERIAL_CUBIC_INCH", "IMPERIAL_CUBIC_FOOT", "IMPERIAL_CUBIC_YARD", "METRIC_MILLILITER", "METRIC_LITER"]) #validator.allowable_values.each do |value| # expect { @instance.volume_unit = value }.not_to raise_error #end end end describe 'test attribute "weight_unit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IMPERIAL_WEIGHT_OUNCE", "IMPERIAL_POUND", "IMPERIAL_STONE", "METRIC_MILLIGRAM", "METRIC_GRAM", "METRIC_KILOGRAM"]) #validator.allowable_values.each do |value| # expect { @instance.weight_unit = value }.not_to raise_error #end end end end