Sha256: eb156ddd420117eca5cd60b2af5a364867815a793e01c8e3c3429383e53b8611
Contents?: true
Size: 1014 Bytes
Versions: 3
Compression:
Stored size: 1014 Bytes
Contents
require 'fileutils' require 'logger' version = ENV['RAILS'] gem 'activerecord', version == '3' ? '>= 3.0.0.beta' : "~> #{version}" if version require 'active_record' Dir.chdir File.join(File.dirname(__FILE__), '..', '..') ActiveRecord::Base.logger = Logger.new("debug.log") databases = YAML::load(IO.read("spec/active_record/fixtures/database.yml")) db_info = databases[ENV["DB"] || "test"] ActiveRecord::Base.establish_connection(db_info) config_class = if version.to_s[0, 1] == '3' gem 'rspec', '>= 2.0.0.beta' require 'rspec' RSpec else require 'spec' Spec::Runner end require 'lib/blueprints' require 'spec/active_record/fixtures/fruit' require 'spec/active_record/fixtures/tree' config_class.configure do |config| config.mock_with :mocha end Blueprints.enable do |config| config.root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) config.filename = 'spec/active_record/blueprint.rb' config.prebuild = :big_cherry config.transactions = !ENV["NO_TRANSACTIONS"] end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blueprints-0.8.2 | spec/active_record/spec_helper.rb |
blueprints-0.8.1 | spec/active_record/spec_helper.rb |
blueprints-0.8.0 | spec/active_record/spec_helper.rb |