Sha256: 854410d767f3de94d17961988626922ba54d01198d12e9d4e4b465a442ff1425
Contents?: true
Size: 1.87 KB
Versions: 24
Compression:
Stored size: 1.87 KB
Contents
=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::CustomerCreationSourceFilter # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'CustomerCreationSourceFilter' do before do # run before each test @instance = SquareConnect::CustomerCreationSourceFilter.new end after do # run after each test end describe 'test an instance of CustomerCreationSourceFilter' do it 'should create an instact of CustomerCreationSourceFilter' do expect(@instance).to be_instance_of(SquareConnect::CustomerCreationSourceFilter) end end describe 'test attribute "values"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers #validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["OTHER", "APPOINTMENTS", "COUPON", "DELETION_RECOVERY", "DIRECTORY", "EGIFTING", "EMAIL_COLLECTION", "FEEDBACK", "IMPORT", "INVOICES", "LOYALTY", "MARKETING", "MERGE", "ONLINE_STORE", "INSTANT_PROFILE", "TERMINAL", "THIRD_PARTY", "THIRD_PARTY_IMPORT", "UNMERGE_RECOVERY"]) #validator.allowable_values.each do |value| # expect { @instance.values = value }.not_to raise_error #end end end describe 'test attribute "rule"' 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', ["INCLUDE", "EXCLUDE"]) #validator.allowable_values.each do |value| # expect { @instance.rule = value }.not_to raise_error #end end end end
Version data entries
24 entries across 24 versions & 1 rubygems