blob: eb87e2448cf763cb8e117bcb626645e0efe730f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|