Sha256: 1a9f74800602a522f13959d10c38676f6e659518391572df6cab1030b739d4d9
Contents?: true
Size: 636 Bytes
Versions: 3
Compression:
Stored size: 636 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) # load Rails first require 'rails' # load the plugin require 'active_decorator' # needs to load the app next require 'fake_app/fake_app' require 'test/unit/rails/test_help' class ActionDispatch::IntegrationTest include Capybara::DSL end module DatabaseDeleter def setup Book.delete_all Author.delete_all Movie.delete_all super end end Test::Unit::TestCase.send :prepend, DatabaseDeleter CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'authors'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_decorator-1.0.0 | test/test_helper.rb |
active_decorator-0.9.0 | test/test_helper.rb |
active_decorator-0.8.0 | test/test_helper.rb |