Sha256: 1b3313fe49b24c889f6fb5f4cce0b4ac9f9ad6eb33d32eaf2416f4e2a303a363
Contents?: true
Size: 936 Bytes
Versions: 7
Compression:
Stored size: 936 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rails' require 'kaminari' require 'database_cleaner' require 'will_filter' require 'tr8n' # Ensure we use 'syck' instead of 'psych' in 1.9.2 # RubyGems >= 1.5.0 uses 'psych' on 1.9.2, but # Psych does not yet support YAML 1.1 merge keys. # Merge keys is often used in mongoid.yml # See: http://redmine.ruby-lang.org/issues/show/4300 if RUBY_VERSION >= '1.9.2' YAML::ENGINE.yamler = 'syck' end require File.join(File.dirname(__FILE__), '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 CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'users' end end
Version data entries
7 entries across 7 versions & 1 rubygems