Sha256: 58b4f80b68be42f73eaeb8af667388caa16e6c7770c91a202e18043756e2243f
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
$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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_decorator-0.7.1 | test/test_helper.rb |
active_decorator-0.7.0 | test/test_helper.rb |