Sha256: 47ccca51eb458a18dd9f3ffd03cb597469d734a331b124217441fed88eeb875d

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

require 'rubygems'
require 'bundler'
require 'yaml'

Bundler.require :default, :development

SPEC_DIR = File.dirname(__FILE__) unless defined? SPEC_DIR
MR_CONFIG = YAML.load_file(File.join(SPEC_DIR, 'config.yml')) unless defined? MR_CONFIG

Rspec.configure do |c|
  #c.fail_fast = true 
end

Dir["#{SPEC_DIR}/orm/models/*.rb"].each { |f| require f }
Dir["#{SPEC_DIR}/support/**/*.rb"].each { |f| require f }
Dir["#{SPEC_DIR}/shared/**/*.rb"].each { |f| require f }


MassiveRecord::ORM::IdentityMap.enabled = false
if MassiveRecord::ORM::IdentityMap.enabled?
  Rspec.configure do |c|
    puts "IdentityMap is enabled!"
    c.before { MassiveRecord::ORM::IdentityMap.clear }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
massive_record-0.2.2 spec/spec_helper.rb
massive_record-0.2.2.rc2 spec/spec_helper.rb
massive_record-0.2.2.rc1 spec/spec_helper.rb