module Spree::TestingSupport::Translations
Public Instance Methods
check_missing_translations(page, example)
click to toggle source
# 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