From 088e06cae732b18b8e9eefb5c94790c3167ed644 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 26 Sep 2018 10:47:13 -0700 Subject: [PATCH] fix check to inventory --- spec/requests/api/v1/inventories_controller_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/requests/api/v1/inventories_controller_spec.rb b/spec/requests/api/v1/inventories_controller_spec.rb index 32d920ade..da191403a 100644 --- a/spec/requests/api/v1/inventories_controller_spec.rb +++ b/spec/requests/api/v1/inventories_controller_spec.rb @@ -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