diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-09-04 19:50:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 19:50:18 +0200 |
commit | e71d3cab81af61b9b0874c87e55bce420d2aa617 (patch) | |
tree | 947171901b4a2bac8a653a8adc62f4c6241bb7b8 /railties/test/generators/plugin_test_runner_test.rb | |
parent | a917b59d54c903ad9366d6f8f0ad0d4c02020b45 (diff) | |
parent | c31c705a6a3267578dc0e63aa5aa51b178151861 (diff) | |
download | rails-e71d3cab81af61b9b0874c87e55bce420d2aa617.tar.gz rails-e71d3cab81af61b9b0874c87e55bce420d2aa617.tar.bz2 rails-e71d3cab81af61b9b0874c87e55bce420d2aa617.zip |
Merge pull request #30517 from y-yagi/fix_30516
Explicitly require `test_unit/reporter`
Diffstat (limited to 'railties/test/generators/plugin_test_runner_test.rb')
-rw-r--r-- | railties/test/generators/plugin_test_runner_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_test_runner_test.rb b/railties/test/generators/plugin_test_runner_test.rb index 28a76f0617..89c3f1e496 100644 --- a/railties/test/generators/plugin_test_runner_test.rb +++ b/railties/test/generators/plugin_test_runner_test.rb @@ -105,6 +105,12 @@ class PluginTestRunnerTest < ActiveSupport::TestCase capture(:stderr) { run_test_command("test/models/warnings_test.rb -w") }) end + def test_run_rake_test + create_test_file "foo" + result = Dir.chdir(plugin_path) { `rake test TEST=test/foo_test.rb` } + assert_match "1 runs, 1 assertions, 0 failures", result + end + private def plugin_path "#{@destination_root}/bukkits" |