Module: Spree::TestingSupport::Translations
- Defined in:
- lib/spree/testing_support/translations.rb
Instance Method Summary collapse
Instance Method Details
#check_missing_translations(page, example) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/spree/testing_support/translations.rb', line 6 def check_missing_translations(page, example) missing_translations = page.body.scan(/translation missing: #{I18n.locale}\.(.*?)[\s<\"&]/) if missing_translations.any? puts "Found missing translations: #{missing_translations.inspect}" puts "In spec: #{example.location}" end end |