mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:09:52 +01:00
16 lines
434 B
Ruby
16 lines
434 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
require "support/load_rake_tasks"
|
|
|
|
describe "test locale generation" do
|
|
it "succeeds" do
|
|
allow($stdout).to receive(:puts)
|
|
|
|
Rake::Task["locale:generate"].execute
|
|
|
|
%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
|