Sha256: dc13c1602b9a1c131625c11819092ead28758504438beeb228961d2ae94b1a6d
Contents?: true
Size: 902 Bytes
Versions: 26
Compression:
Stored size: 902 Bytes
Contents
ENV['RAILS_ENV'] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'factory_bot_rails' require 'simplecov' SimpleCov.start('rails') include Warden::Test::Helpers Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } FactoryBot.definition_file_paths = [File.expand_path('../factories', __FILE__)] FactoryBot.find_definitions RSpec.configure do |config| config.include FactoryBot::Syntax::Methods config.mock_with :rspec config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false config.order = "random" config.include Warden::Test::Helpers config.before(:each, type: :controller) { @routes = TrustyCms::Engine.routes } config.before(:each, type: :routing) { @routes = TrustyCms::Engine.routes } end
Version data entries
26 entries across 26 versions & 1 rubygems