spec/translations/locale_spec.rb in spree-faq-2.1.1 vs spec/translations/locale_spec.rb in spree-faq-2.2.0
- old
+ new
@@ -1,13 +1,15 @@
-RSpec.describe 'locale' do
+require 'spec_helper'
+
+describe 'locale' do
Dir.glob('config/locales/*.yml') do |locale_file|
context locale_file do
- it { is_expected.to be_parseable }
- it { is_expected.to have_valid_pluralization_keys }
- it { is_expected.not_to have_missing_pluralization_keys }
- it { is_expected.to have_one_top_level_namespace }
- it { is_expected.not_to have_legacy_interpolations }
- it { is_expected.to have_a_valid_locale }
- it { is_expected.to be_a_complete_translation_of 'config/locales/en.yml' }
+ it { should be_parseable }
+ it { should have_valid_pluralization_keys }
+ it { should_not have_missing_pluralization_keys }
+ it { should have_one_top_level_namespace }
+ it { should_not have_legacy_interpolations }
+ it { should have_a_valid_locale }
+ it { should be_a_complete_translation_of 'config/locales/en.yml' }
end
end
end