Revisions
-
oriolgual revised this gist
Jul 6, 2011 . No changes.There are no files selected for viewing
-
oriolgual created this gist
Jul 6, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ # features/support/missing_translations.rb missing_translations = [] After do |scenario| temp = all('.translation_missing') if temp.any? missing_translations << temp.to_a raise "Missing Translation" end end at_exit do if missing_translations.any? keys = missing_translations.flatten.map do |translation| translation[:title] end.uniq puts '-------------------------------------------------------------' puts "There are #{keys.length} untranslated strings. Please check your locales:" puts '-------------------------------------------------------------' puts "\n" keys.each do |translation| puts translation end puts "\n" end end