mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 07:38:01 +08:00
FIX: i18n integrity check was not ignoring comments properly
This commit is contained in:
parent
b95db5fcae
commit
16c6759818
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user