Improvements from Rails plugin template

This commit is contained in:
Benjamin Fleischer
2016-04-01 04:12:30 -05:00
parent 96c5516d21
commit 21b2eff2ab
11 changed files with 61 additions and 19 deletions

View File

@@ -32,3 +32,14 @@ ActionController::TestCase.class_eval do
key.nil? ? assigns : assigns[key]
end
end
# ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
# ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
#
# Load fixtures from the engine
# if ActiveSupport::TestCase.respond_to?(:fixture_path=)
# ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
# ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
# ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
# ActiveSupport::TestCase.fixtures :all
# end