Sha256: 0a890152612e59a4dfaf55b896253a3353231fede6c1882b9ec4a19c4d23fcf4
Contents?: true
Size: 393 Bytes
Versions: 5
Compression:
Stored size: 393 Bytes
Contents
require 'rspec' require 'i18n-spec' RSpec.configure do |config| config.after(type: :feature) do 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
Version data entries
5 entries across 5 versions & 2 rubygems