mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Use not found instead of 404 for spec descriptions
This commit is contained in:
@@ -73,7 +73,7 @@ describe DfcProvider::Api::CatalogItemsController, type: :controller do
|
||||
context 'without a recorded enterprise' do
|
||||
let(:enterprise) { create(:enterprise) }
|
||||
|
||||
it 'returns not_found head' do
|
||||
it 'is not found' do
|
||||
api_get :index, enterprise_id: 'default'
|
||||
expect(response.status).to eq 404
|
||||
end
|
||||
@@ -140,7 +140,7 @@ describe DfcProvider::Api::CatalogItemsController, type: :controller do
|
||||
id: create(:simple_product).variants.first.id
|
||||
end
|
||||
|
||||
it 'returns a 404 error' do
|
||||
it 'is not found' do
|
||||
expect(response.status).to eq 404
|
||||
end
|
||||
end
|
||||
|
||||
@@ -43,7 +43,7 @@ describe DfcProvider::Api::EnterprisesController, type: :controller do
|
||||
context 'given with a wrong id' do
|
||||
before { api_get :show, id: 999 }
|
||||
|
||||
it 'returns 404' do
|
||||
it 'is not found' do
|
||||
expect(response.status).to eq 404
|
||||
end
|
||||
end
|
||||
|
||||
@@ -38,7 +38,7 @@ describe DfcProvider::Api::PersonsController, type: :controller do
|
||||
context 'with an other user id' do
|
||||
before { api_get :show, id: create(:user).id }
|
||||
|
||||
it 'returns 404' do
|
||||
it 'is not found' do
|
||||
expect(response.status).to eq 404
|
||||
end
|
||||
end
|
||||
|
||||
@@ -44,7 +44,7 @@ describe DfcProvider::Api::SuppliedProductsController, type: :controller do
|
||||
context 'given with a wrong id' do
|
||||
before { api_get :show, id: 999 }
|
||||
|
||||
it 'returns 404' do
|
||||
it 'is not found' do
|
||||
expect(response.status).to eq 404
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user