foodsoft/spec/i18n_spec.rb

13 lines
486 B
Ruby
Raw Normal View History

2013-07-25 14:46:25 +02:00
require 'spec_helper'
require 'i18n-spec'
2013-10-17 17:10:33 +02:00
Dir.glob('config/locales/??{-*,}.yml').each do |locale_file|
2013-07-25 14:46:25 +02:00
describe "#{locale_file}" do
it_behaves_like 'a valid locale file', locale_file
# We're currently allowing both German and English as source language
# besides, we're using localeapp, so that it's ok if pull requests
# don't have this - a localapp pull will fix that right away.
# it { expect(locale_file).to be_a_subset_of 'config/locales/en.yml' }
2013-07-25 14:46:25 +02:00
end
end