This repository has been archived by the owner on Aug 29, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because engines can contain functionality that is a part of an
application in a strong sense, we sometimes want to run tests for those engines as part of the application test suite. The new test:engines:* tasks will only run tests from 'engine' plugins (those containing an 'app' directory), as running tests for all plugins can often interact badly with the application tests (i.e. the often expect to be run independently, with their own schema, etc, or in even more esoteric ways, like the tests in the engines plugin itself). We should be able to test that these tests can be overridable. Clean up fixtures created by test:engines:all
- Loading branch information
Showing
5 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. .. .. .. test test_helper])) | ||
|
||
class OverrideTest < ActiveSupport::TestCase | ||
def test_overrides_from_the_application_should_work | ||
flunk "this test should be overridden by the app" | ||
end | ||
|
||
def test_tests_within_the_plugin_should_still_run | ||
assert true, "non-overridden plugin tests should still run" | ||
end | ||
end | ||
|
||
Engines::Testing.override_tests_from_app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require File.join(File.dirname(__FILE__), *%w[.. .. test_helper]) | ||
|
||
class OverrideTest < ActiveSupport::TestCase | ||
def test_overrides_from_the_application_should_work | ||
assert true, "overriding plugin tests from the application should work" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters