Sha256: 7f48208a34529abe4c12102fe32a0ebc21ef71810c45b8537244ca8a48cdd393

Contents?: true

Size: 817 Bytes

Versions: 2

Compression:

Stored size: 817 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require "rails"

ENV["BUNDLE_GEMFILE"] = File.dirname(__FILE__) + "/../Gemfile"
require "bundler"
Bundler.setup
require "rails/all"
Bundler.require(:default)

require "rspec/rails"
require "factory_girl"
require File.dirname(__FILE__) + "/support/factories"

module RSpec
  class Application < ::Rails::Application
    config.root = File.dirname(__FILE__) + "/support/app"
    config.active_support.deprecation = :log
    # config.active_record.logger = Logger.new(STDOUT)
  end
end

RSpec::Application.initialize!
load File.dirname(__FILE__) + "/support/app/db/schema.rb"

RSpec.configure do |config|
  config.use_transactional_fixtures = true
end

Factory.preload do
  factory(:john) { Factory(:user) }
  factory(:ruby) { Factory(:skill, :user => users(:john)) }
end

Factory::Preload.run

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
factory_girl-preload-0.1.1 spec/spec_helper.rb
factory_girl-preload-0.1.0 spec/spec_helper.rb