Sha256: 21f294d7d12bd29c008c356d99e7b33ea463a0bb7be586bf4ecafefb39b5fdbe
Contents?: true
Size: 1.26 KB
Versions: 7
Compression:
Stored size: 1.26 KB
Contents
# Track code coverage require 'simplecov' SimpleCov.start 'rails' do # root "dummy/" add_filter "/factories/" end # This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] = 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'database_cleaner' require 'shoulda' require 'factory_girl' require 'mocha/setup' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../') Dir[File.join(ENGINE_RAILS_ROOT,"spec/support/**/*.rb"), File.join(ENGINE_RAILS_ROOT,"factories/*")].each {|f| require f} RSpec.configure do |config| config.mock_with :mocha config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end Spud::Core::Engine.routes.draw do default_url_options :host => "test.host" end Spud::Inquiries::Engine.routes.draw do default_url_options :host => "test.host" end
Version data entries
7 entries across 7 versions & 1 rubygems