1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/spec/spec_helper.rb
2008-05-16 15:08:50 -07:00

20 lines
No EOL
513 B
Ruby

dir = File.dirname(__FILE__)
$LOAD_PATH.unshift "#{dir}/../lib"
require 'rubygems'
require 'spec'
require 'pp'
require 'fileutils'
require 'arel'
[:matchers, :doubles].each do |helper|
Dir["#{dir}/#{helper}/*"].each { |m| require "#{dir}/#{helper}/#{File.basename(m)}" }
end
Spec::Runner.configure do |config|
config.include(BeLikeMatcher, HashTheSameAsMatcher, DisambiguateAttributesMatcher)
config.mock_with :rr
config.before do
Arel::Table.engine = Arel::Engine.new(Fake::Engine.new)
end
end