forked from activeadmin/activeadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rails_helper.rb
29 lines (20 loc) · 849 Bytes
/
rails_helper.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true
require "spec_helper"
ENV["RAILS_ENV"] = "test"
require_relative "../tasks/test_application"
require "#{ActiveAdmin::TestApplication.new.full_app_dir}/config/environment.rb"
require "rspec/rails"
# Disabling authentication in specs so that we don't have to worry about
# it allover the place
ActiveAdmin.application.authentication_method = false
ActiveAdmin.application.current_user_method = false
RSpec.configure do |config|
config.use_transactional_fixtures = true
config.use_instantiated_fixtures = false
config.render_views = false
config.include Devise::Test::ControllerHelpers, type: :controller
require "support/active_admin_integration_spec_helper"
config.include ActiveAdminIntegrationSpecHelper
end
# Force deprecations to raise an exception.
ActiveSupport::Deprecation.behavior = :raise