Sha256: edf1750c65b526ed32e5ea154d4720883fb09546eeb185a5f811234e1781f0e4
Contents?: true
Size: 687 Bytes
Versions: 9
Compression:
Stored size: 687 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) # load Rails first require 'rails' require 'erd' # needs to load the app before loading rspec/rails => capybara require 'fake_app/fake_app' require 'rspec/rails' # 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.mock_with :rr config.before :all do ActiveRecord::Migration.verbose = false ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths.map {|p| Rails.root.join p}, nil) end end
Version data entries
9 entries across 9 versions & 1 rubygems