Use not found instead of 404 for spec descriptions

This commit is contained in:
François Turbelin
2020-09-03 00:59:21 +02:00
parent d11d67561f
commit 52d82d0a96
4 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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