Remove I18n keys in reports lib specs

This commit is contained in:
cyrillefr
2023-02-15 10:26:13 +01:00
parent fa57e37467
commit 78a6317c84
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ describe Reporting::LineItems do
it 'returns masked data' do
line_items = reports_line_items.list
expect(line_items.first.order.email).to eq(I18n.t('admin.reports.hidden'))
expect(line_items.first.order.email).to eq('HIDDEN')
end
end
end

View File

@@ -84,7 +84,7 @@ describe "Packing Reports" do
it "shows line items supplied by my producers, with names hidden" do
expect(report_contents).to include line_item2.product.name
expect(report_data.first["first_name"]).to eq(
I18n.t('admin.reports.hidden_field')
'< Hidden >'
)
end