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

Version Path
trusty-cms-6.3.1 spec/spec_helper.rb
trusty-cms-7.0.2 spec/spec_helper.rb
trusty-cms-7.0.1 spec/spec_helper.rb
trusty-cms-7.0.0 spec/spec_helper.rb
trusty-cms-6.3 spec/spec_helper.rb
trusty-cms-6.2.1 spec/spec_helper.rb
trusty-cms-6.2.2.1 spec/spec_helper.rb
trusty-cms-6.2.0 spec/spec_helper.rb
trusty-cms-6.1.2 spec/spec_helper.rb
trusty-cms-6.1.1 spec/spec_helper.rb
trusty-cms-6.0.5 spec/spec_helper.rb
trusty-cms-6.0.4 spec/spec_helper.rb
trusty-cms-6.0.3 spec/spec_helper.rb
trusty-cms-6.0.2 spec/spec_helper.rb
trusty-cms-6.0.1 spec/spec_helper.rb
trusty-cms-5.6.1 spec/spec_helper.rb
trusty-cms-6.0.0 spec/spec_helper.rb
trusty-cms-5.6.0 spec/spec_helper.rb
trusty-cms-5.5.9 spec/spec_helper.rb
trusty-cms-5.5.8 spec/spec_helper.rb