File: valid_locale_file.rb

package info (click to toggle)
ruby-i18n-spec 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 224 kB
  • sloc: ruby: 478; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
RSpec.shared_examples_for "a valid locale file" do |locale_file|
  describe locale_file do
    it { is_expected.to be_parseable }
    it { is_expected.to have_valid_pluralization_keys }
    it { is_expected.to_not have_missing_pluralization_keys }
    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 }
  end
end