Sha256: e280b280e6d6f7f0514414f3f31aa20fb47d836d3abccbeaefe78bc4518dc4ad

Contents?: true

Size: 729 Bytes

Versions: 3

Compression:

Stored size: 729 Bytes

Contents

require 'pry'
require 'opal-browser'

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../test_app/config/environment', __FILE__)

require 'rspec/rails'
require 'hyper-spec'
require 'hyper-i18n'

RSpec.configure do |config|

  config.before :suite do
    MiniRacer_Backup = MiniRacer
    Object.send(:remove_const, :MiniRacer)
  end

  config.around(:each, :prerendering_on) do |example|
    MiniRacer = MiniRacer_Backup
    example.run
    Object.send(:remove_const, :MiniRacer)
  end

  config.color = true
  config.formatter = :documentation
  config.before(:all) do
    `rm -rf spec/test_app/tmp/cache/`
  end

  # Use legacy hyper-spec on_client behavior
  HyperSpec::Helpers.alias_method :on_client, :before_mount
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyper-i18n-1.0.alpha1.8 spec/spec_helper.rb
hyper-i18n-1.0.alpha1.7 spec/spec_helper.rb
hyper-i18n-1.0.alpha1.6 spec/spec_helper.rb