Sha256: 0bff9120c9f1f22e1317929e88a8748c2d979cb0c2c97c83501ed88ecaee1a12

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

require 'rails_helper'

Dir.glob('config/locales/*.yml') do |locale_file|
  RSpec.describe locale_file do
    it { is_expected.to be_parseable }
    it { is_expected.to have_one_top_level_namespace }
    it { is_expected.to be_named_like_top_level_namespace }
    it { is_expected.to_not have_legacy_interpolations }
    it { is_expected.to have_a_valid_locale }
    it { is_expected.to be_a_subset_of 'config/locales/en.yml' }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-1.0.0 spec/unit/i18n_spec.rb
activeadmin-1.0.0.pre5 spec/unit/i18n_spec.rb