Sha256: 30555df948ee0e4c819c686271a9f9336c889b3c13001896b9c000ce593f6f74

Contents?: true

Size: 642 Bytes

Versions: 7

Compression:

Stored size: 642 Bytes

Contents

require "bundler/setup"
require "tram/policy"
require "tram/policy/rspec"
require "rspec/its"

require_relative "support/fixtures_helper.rb"

RSpec.configure do |config|
  config.example_status_persistence_file_path = ".rspec_status"
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.order = :random
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true

  config.before(:each) do
    Test = Class.new(Module)
    I18n.available_locales = %w[en]
    I18n.backend.store_translations :en, yaml_fixture_file("en.yml")["en"]
  end

  config.after(:each) { Object.send :remove_const, :Test }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tram-policy-2.2.0 spec/spec_helper.rb
tram-policy-2.1.0 spec/spec_helper.rb
tram-policy-2.0.1 spec/spec_helper.rb
tram-policy-2.0.0 spec/spec_helper.rb
tram-policy-1.0.1 spec/spec_helper.rb
tram-policy-1.0.0 spec/spec_helper.rb
tram-policy-0.4.0 spec/spec_helper.rb