2011-02-05 13:32:10 +00:00
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
|
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2012-05-17 13:06:45 +00:00
|
|
|
|
2012-05-20 14:30:19 +00:00
|
|
|
require 'rails'
|
2012-05-17 13:06:45 +00:00
|
|
|
require 'bundler/setup'
|
|
|
|
Bundler.require
|
|
|
|
|
2011-04-02 05:27:28 +00:00
|
|
|
require 'database_cleaner'
|
2012-05-20 14:30:19 +00:00
|
|
|
|
|
|
|
# Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded.
|
|
|
|
require 'fake_gem' if defined? ActiveRecord
|
|
|
|
|
|
|
|
require 'fake_app/fake_app'
|
2011-02-05 13:54:09 +00:00
|
|
|
|
2011-02-08 01:05:19 +00:00
|
|
|
require 'rspec/rails'
|
2011-02-05 13:32:10 +00:00
|
|
|
# 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|
|
2011-02-05 13:54:09 +00:00
|
|
|
config.mock_with :rr
|
2011-02-05 13:32:10 +00:00
|
|
|
end
|