Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 741 Bytes
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "rails/test_help"
require 'minitest/autorun'
require 'minitest/benchmark' if ENV["BENCH"]
require 'minitest/pride'
require 'miniskirt'
require 'factories'
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
class MiniTest::Spec
include ActiveSupport::Testing::SetupAndTeardown
include ActiveRecord::TestFixtures
alias :method_name :__name__ if defined? :__name__
self.fixture_path = File.join( Rails.root, 'test', 'fixtures' )
end
# Select the Redis test database
Recommendable.configuration.redis.select 15
Something went wrong with that request. Please try again.