Sha256: 495b64d654163ec5c1675cd3613b0017ae7859017fb83b917efac44bf9644421

Contents?: true

Size: 355 Bytes

Versions: 5

Compression:

Stored size: 355 Bytes

Contents

require 'rspec'
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"
      puts "\e[1m\e[35mIn spec: #{example.location}\e[0m"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree-faq-2.4.0 spec/support/i18n.rb
spree-faq-2.3.0 spec/support/i18n.rb
spree-faq-2.2.1 spec/support/i18n.rb
spree-faq-2.1.1 spec/support/i18n.rb
spree-faq-2.0.1 spec/support/i18n.rb