mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: i18n integrity check was not ignoring comments properly
This commit is contained in:
parent
b95db5fcae
commit
16c6759818
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue