mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:29:54 +01:00
add spec to verify that generating test locales works
This commit is contained in:
parent
8bff5f6494
commit
0ed4b2ac90
1 changed files with 17 additions and 0 deletions
17
spec/integration/generated_locale_spec.rb
Normal file
17
spec/integration/generated_locale_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require "rails_helper"
|
||||||
|
|
||||||
|
describe "test locale generation" do
|
||||||
|
before(:context) { Rails.application.load_tasks }
|
||||||
|
|
||||||
|
it "succeeds" do
|
||||||
|
allow($stdout).to receive(:puts)
|
||||||
|
|
||||||
|
Rake::Task["locale:generate"].invoke
|
||||||
|
|
||||||
|
%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
|
Loading…
Reference in a new issue