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