Skip to content

Commit c939234

Browse files
authored
Revert the i18n-tasks initialization syntax (decidim#8693)
1 parent 3d53e43 commit c939234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/i18n_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ENV["ENFORCED_LOCALES"].presence || "en"
88
end
99

10-
let(:i18n) { I18n::Tasks::BaseTask.new({ locales: locales.split(",") }, config_file: nil) }
10+
let(:i18n) { I18n::Tasks::BaseTask.new(locales: locales.split(",")) }
1111
let(:missing_keys) { i18n.missing_keys }
1212
let(:unused_keys) { i18n.unused_keys }
1313
let(:non_normalized_paths) { i18n.non_normalized_paths }
@@ -16,7 +16,7 @@
1616
it "correct Norwegian locale keys should be surrounded by quotation marks" do
1717
# otherwise psych evaluates `no:` to `false`
1818
# see https://makandracards.com/makandra/24809-yaml-keys-like-yes-or-no-evaluate-to-true-and-false
19-
i18n = I18n::Tasks::BaseTask.new({ locales: "no" }, config_file: nil)
19+
i18n = I18n::Tasks::BaseTask.new(locales: "no")
2020
forest = i18n.data_forest(["no"])
2121
stats = i18n.forest_stats(forest)
2222
expect(stats[:locales]).to eq("no")

0 commit comments

Comments
 (0)