hooks.rb 418 Bytes
require_relative 'header'

After do |scenario|
  # Do something after each scenario.
  # The +scenario+ argument is optional, but
  # if you use it, you can inspect status with
  # the #failed?, #passed? and #exception methods.
  Rails.cache.clear
end

# Run all acceptance tests on the default language
Before do |scenario|
  set_header('Accept-Language', I18n.default_locale)
  I18n.locale = I18n.default_locale
end