mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-02 10:44:28 +08:00
fix check to inventory
This commit is contained in:
parent
43a3c1c06b
commit
088e06cae7
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue