Use the same texts on event links and graphs

Note we're delegating the `t` method because i18n-tasks doesn't detect
code like `ApplicationController.helpers.t` and so reports we aren't
using the `admin.stats.graph` translations.
This commit is contained in:
Javi Martín
2024-04-25 03:18:12 +02:00
parent f7e2d724dd
commit 328413373e
8 changed files with 24 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ describe Admin::Api::StatsController, :admin do
get :show, params: { event: "proposal_created" }
expect(response).to be_ok
expect(response.parsed_body).to eq "x" => ["2015-01-01", "2015-01-02"], "Proposal Created" => [2, 1]
expect(response.parsed_body).to eq "x" => ["2015-01-01", "2015-01-02"], "Citizen proposals" => [2, 1]
end
end
end