aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/plugin_test_runner_test.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-09-04 19:50:18 +0200
committerGitHub <noreply@github.com>2017-09-04 19:50:18 +0200
commite71d3cab81af61b9b0874c87e55bce420d2aa617 (patch)
tree947171901b4a2bac8a653a8adc62f4c6241bb7b8 /railties/test/generators/plugin_test_runner_test.rb
parenta917b59d54c903ad9366d6f8f0ad0d4c02020b45 (diff)
parentc31c705a6a3267578dc0e63aa5aa51b178151861 (diff)
downloadrails-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.rb6
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"