spec/support/i18n.rb in spree-faq-2.1.1 vs spec/support/i18n.rb in spree-faq-2.2.0

- old
+ new

@@ -2,12 +2,12 @@ require 'i18n-spec' RSpec.configure do |config| config.after(type: :feature) do - missing = page.body.scan(/translation missing: #{I18n.locale}\.(.*?)[\s<\"&]/) - if missing.any? - puts "\e[1m\e[35mFound missing translations: #{missing.inspect}\e[0m" + missing_translations = page.body.scan(/translation missing: #{I18n.locale}\.(.*?)[\s<\"&]/) + if missing_translations.any? + puts "\e[1m\e[35mFound missing translations: #{missing_translations.inspect}\e[0m" puts "\e[1m\e[35mIn spec: #{example.location}\e[0m" end end -end +end \ No newline at end of file