Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n_spec fails on 'one' key missing outside of an activerecord model #23

Open
yld opened this issue Jun 12, 2017 · 0 comments
Open

i18n_spec fails on 'one' key missing outside of an activerecord model #23

yld opened this issue Jun 12, 2017 · 0 comments

Comments

@yld
Copy link

yld commented Jun 12, 2017

I have a YAML structured like this, containing other keyword:

fr:
  something:
    other: 'autre'

i got that kind of messages:

expected config/locales/something/fr.yml to contain the following pluralization keys :
       - fr.something.one

and

expected config/locales/something/fr.yml to not contain invalid pluralization keys in the following namespaces :
       - fr.something

I had to disable the pluralization validations after having disabled the global shared behaviour:

it_behaves_like 'a valid locale file'

to enable all the expectations one by one but the 2 related to pluralization:

      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 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant