mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove I18n keys in reports lib specs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user