From 16c67598187db50c6f82da0e455a000079b2f57b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 14 Feb 2014 14:47:52 -0500 Subject: [PATCH] FIX: i18n integrity check was not ignoring comments properly --- spec/integrity/i18n_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/integrity/i18n_spec.rb b/spec/integrity/i18n_spec.rb index a39e3f3324a..28dd4ec1616 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