Sha256: 1b34beb0684f64eebbe8ed47cf168daefb1256256ff80f48e4f817f47d1aa610
Contents?: true
Size: 1.04 KB
Versions: 8
Compression:
Stored size: 1.04 KB
Contents
Encoding.default_external = Encoding::UTF_8 $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) # Configure simplecov gem (must be here at top of file) require 'coveralls' Coveralls.wear! do add_filter 'spec' # Don't include RSpec stuff add_group 'Types', 'lib/attributor/types' end require 'rspec' require 'rspec/its' require 'rspec/collection_matchers' require 'attributor' require 'pry' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.around(:each) do |example| Attributor::AttributeResolver.current = Attributor::AttributeResolver.new example.run Attributor::AttributeResolver.current = nil end end RSpec::Matchers.define :be_in_family do |expected| match do |actual| actual.family == expected end end RSpec::Matchers.define :be_subclass_of do |expected| match do |actual| actual < expected end end
Version data entries
8 entries across 8 versions & 1 rubygems