Sha256: 8c96879d01bfc1e78bbe4391ca7bf498fd6b7de5d028800dd4742d05e6f85921

Contents?: true

Size: 658 Bytes

Versions: 9

Compression:

Stored size: 658 Bytes

Contents

require 'test_helper'

class Gecko::Record::FulfillmentLineItemAdapterTest < Minitest::Test
  include TestingAdapter

  let(:adapter)       { @client.FulfillmentLineItem }
  let(:plural_name)   { 'fulfillment_line_items' }
  let(:record_class)  { Gecko::Record::FulfillmentLineItem }

  def test_initializes_adapter
    assert_instance_of(Gecko::Record::FulfillmentLineItemAdapter, @client.FulfillmentLineItem)
  end

  def test_adapter_uses_identity_map
    VCR.use_cassette('fulfillments') do
      @client.Fulfillment.where(limit: 5)
      collection = adapter.all
      assert_equal(collection.first, adapter.find(collection.first.id))
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gecko-ruby-0.2.0 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.1.0 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.0.10 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.0.9 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.0.8 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.0.7 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.0.6 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.0.5 test/record/fulfillment_line_item_adapter_test.rb
gecko-ruby-0.0.4 test/record/fulfillment_line_item_adapter_test.rb