Sha256: f51d8367f23a6997a10b3bb205b931244d7e7b4f91f530590cfa7e8148deeccb

Contents?: true

Size: 779 Bytes

Versions: 1

Compression:

Stored size: 779 Bytes

Contents

$:.unshift(File.expand_path('../../lib', __FILE__))

require 'pathname'

root_path = Pathname(__FILE__).dirname.join('..').expand_path
lib_path  = root_path.join('lib')

require 'rubygems'
require 'bundler'

Bundler.require(:default, :test)

require 'toy'

Dir[root_path.join("spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |c|
  c.include(Support::Constants)
  c.include(Support::Objects)
  c.include(IdentityMapMatcher)
  c.include(InstrumenterHelpers)

  c.fail_fast = true
  c.filter_run :focused => true
  c.alias_example_to :fit, :focused => true
  c.alias_example_to :xit, :pending => true
  c.run_all_when_everything_filtered = true

  c.before(:each) do
    Toy::IdentityMap.enabled = false
    Toy.key_factory = nil
    clear_instrumenter
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toystore-0.13.2 spec/helper.rb