Sha256: f7e9aee414d8c65a26439294081b9a1e3a21337230001a7bcb734baa51ade452
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
require 'minitest-spec-rails' require 'minitest/mock' require 'minitest/pride' require 'database_cleaner' # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } #Rails.backtrace_cleaner.remove_silencers! DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :truncation Dragonfly.app.use_datastore :memory class ActiveSupport::TestCase # Due to test weirdness / dodgy code need to reference some classes Page && Location before :each do DatabaseCleaner.start PushType.config.root_nodes = :all PushType.config.unexposed_nodes = [] end after :each do DatabaseCleaner.clean end # Add more helper methods to be used by all tests here... end class ActionController::TestCase before :each do @routes = PushType::Core::Engine.routes end if Rails.version.to_f >= 5 require 'rails-controller-testing' include ::Rails::Controller::Testing::TestProcess include ::Rails::Controller::Testing::TemplateAssertions include ::Rails::Controller::Testing::Integration end end
Version data entries
4 entries across 4 versions & 1 rubygems