fix check to inventory

This commit is contained in:
Michael 2018-09-26 10:47:13 -07:00
parent 43a3c1c06b
commit 088e06cae7

View file

@ -112,9 +112,8 @@ RSpec.describe "Api::V1::InventoriesController", type: :request do
expect { hash_body = json }.not_to raise_exception
expect(hash_body[:data]).to match(
ActiveModelSerializers::SerializableResource
.new(RepositoryColumn.last,
serializer: Api::V1::InventoryColumnSerializer,
include: :inventory_cells)
.new(Repository.last,
serializer: Api::V1::InventorySerializer)
.as_json[:data]
)
end