Sha256: 65139a0c54314f30feba5d0101637fe172e4f65fe9501bc6186f9432bb363942
Contents?: true
Size: 1.1 KB
Versions: 5
Compression:
Stored size: 1.1 KB
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rails' require 'schema_comments' # require 'database_cleaner' # 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 'yaml_waml' require '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| %w(resources/models).each do |path| $LOAD_PATH.unshift File.join(File.dirname(__FILE__), path) ActiveSupport::Dependencies.autoload_paths << File.join(File.dirname(__FILE__), path) end Dir.glob("resources/**/*.rb") do |filename| require filename end SchemaComments.setup end MIGRATIONS_ROOT = File.join(File.dirname(__FILE__), 'migrations')
Version data entries
5 entries across 5 versions & 1 rubygems