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

Version Path
trusty-cms-5.4.3 spec/spec_helper.rb
trusty-cms-5.4.2 spec/spec_helper.rb
trusty-cms-5.4.1 spec/spec_helper.rb
trusty-cms-5.4.0 spec/spec_helper.rb
trusty-cms-5.3.9 spec/spec_helper.rb
trusty-cms-5.3.8 spec/spec_helper.rb
trusty-cms-5.3.7 spec/spec_helper.rb
trusty-cms-5.3.6 spec/spec_helper.rb
trusty-cms-5.3.5 spec/spec_helper.rb
trusty-cms-5.3.4 spec/spec_helper.rb
trusty-cms-5.3.3 spec/spec_helper.rb
trusty-cms-5.3.2 spec/spec_helper.rb
trusty-cms-5.3.1 spec/spec_helper.rb
trusty-cms-5.3 spec/spec_helper.rb
trusty-cms-5.2.3 spec/spec_helper.rb
trusty-cms-5.2.2 spec/spec_helper.rb
trusty-cms-5.2.1 spec/spec_helper.rb
trusty-cms-5.2.0 spec/spec_helper.rb
trusty-cms-5.1.0 spec/spec_helper.rb
trusty-cms-5.0.9 spec/spec_helper.rb