Sha256: ddba4d74c8345fe0cab60f4053ae2335407c2fdba03d00148bcae2bcfda57fc8

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

=begin
#Patch API V1

#The core API used to integrate with Patch's service

The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1

=end

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

# Unit tests for Patch::CreateOrderRequest
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'CreateOrderRequest' do
  before do
    # run before each test
    @instance = build(:create_order_request)
  end

  after do
    # run after each test
  end

  it_behaves_like "a generated class" do
    let(:instance) { @instance }
    let(:instance_hash) { { project_id: @instance.project_id, mass_g: @instance.mass_g, total_price_cents_usd: @instance.total_price_cents_usd, metadata: @instance.metadata } }
    let(:nullable_properties) do
      Set.new(%i[mass_g total_price_cents_usd project_id metadata state vintage_year])
    end
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
patch_ruby-1.20.0 spec/models/create_order_request_spec.rb