mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Cosmetics
This commit is contained in:
@@ -23,15 +23,13 @@ describe DfcProvider::CatalogItemSerializer do
|
||||
describe '#references' do
|
||||
it 'returns the expected value' do
|
||||
expect(subject.references).to eq(
|
||||
{
|
||||
"@id" =>
|
||||
DfcProvider::Engine.routes.url_helpers.api_dfc_provider_enterprise_supplied_product_url(
|
||||
enterprise_id: product.supplier_id,
|
||||
id: product.id,
|
||||
host: 'http://test.host'
|
||||
),
|
||||
"@type" => "@id"
|
||||
}
|
||||
"@id" =>
|
||||
DfcProvider::Engine.routes.url_helpers.api_dfc_provider_enterprise_supplied_product_url(
|
||||
enterprise_id: product.supplier_id,
|
||||
id: product.id,
|
||||
host: 'http://test.host'
|
||||
),
|
||||
"@type" => "@id"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -23,10 +23,8 @@ describe DfcProvider::SuppliedProductSerializer do
|
||||
describe '#unit' do
|
||||
it 'returns the rdfs label value' do
|
||||
expect(subject.unit).to eq(
|
||||
{
|
||||
'@id' => '/unit/piece',
|
||||
'rdfs:label' => 'piece'
|
||||
}
|
||||
'@id' => '/unit/piece',
|
||||
'rdfs:label' => 'piece'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user