Sha256: 324e8c5265784638e709c4f88ee63f49ba290de7570bdb6b3ee75e2652a68d8f
Contents?: true
Size: 893 Bytes
Versions: 54
Compression:
Stored size: 893 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 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
54 entries across 54 versions & 1 rubygems