diff --git a/spec/integrity/i18n_spec.rb b/spec/integrity/i18n_spec.rb index a39e3f332..28dd4ec16 100644 --- a/spec/integrity/i18n_spec.rb +++ b/spec/integrity/i18n_spec.rb @@ -46,9 +46,10 @@ describe "i18n integrity checks" do Dir["#{Rails.root}/config/locales/*.yml"].each do |f| locale = /.*\.([^.]{2,})\.yml$/.match(f)[1] + ':' IO.foreach(f) do |line| + line.strip! next if line.start_with? "#" next if line.start_with? "---" - next if line.strip!.blank? + next if line..blank? line.should eq locale break end