mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 03:03:04 +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 = json }.not_to raise_exception
|
||||||
expect(hash_body[:data]).to match(
|
expect(hash_body[:data]).to match(
|
||||||
ActiveModelSerializers::SerializableResource
|
ActiveModelSerializers::SerializableResource
|
||||||
.new(RepositoryColumn.last,
|
.new(Repository.last,
|
||||||
serializer: Api::V1::InventoryColumnSerializer,
|
serializer: Api::V1::InventorySerializer)
|
||||||
include: :inventory_cells)
|
|
||||||
.as_json[:data]
|
.as_json[:data]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue