2023-01-10 08:14:55 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "rails_helper"
|
2023-01-11 12:12:13 -08:00
|
|
|
require "support/load_rake_tasks"
|
2023-01-10 08:14:55 -08:00
|
|
|
|
|
|
|
describe "test locale generation" do
|
|
|
|
it "succeeds" do
|
|
|
|
allow($stdout).to receive(:puts)
|
|
|
|
|
2023-01-11 12:12:13 -08:00
|
|
|
Rake::Task["locale:generate"].execute
|
2023-01-10 08:14:55 -08:00
|
|
|
|
|
|
|
%w[activerecord controllers errors frontend views voc].each do |locale_type|
|
|
|
|
expect($stdout).to have_received(:puts).with a_string_including("generating #{locale_type}.en-xx.yml")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|