aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-01-30 15:58:55 +0100
committerYves Senn <yves.senn@gmail.com>2015-03-18 09:52:19 +0100
commitac5ead59ae488e937c6a87662e14fba98b8a1e7e (patch)
tree6e75be44c668e1197389f016e7b0e271d7c5caab /railties/test/application
parentf78708c180868d54e9b86e5d406b69e3de50f503 (diff)
downloadrails-ac5ead59ae488e937c6a87662e14fba98b8a1e7e.tar.gz
rails-ac5ead59ae488e937c6a87662e14fba98b8a1e7e.tar.bz2
rails-ac5ead59ae488e937c6a87662e14fba98b8a1e7e.zip
`-p`, `--pattern` to run tests using a pattern.
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/test_runner_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb
index e273a5467f..c122b315c0 100644
--- a/railties/test/application/test_runner_test.rb
+++ b/railties/test/application/test_runner_test.rb
@@ -173,7 +173,6 @@ module ApplicationTests
end
def test_run_matched_test
- skip "bin/rails test does not yet support running tests by pattern"
app_file 'test/unit/chu_2_koi_test.rb', <<-RUBY
require 'test_helper'
@@ -188,7 +187,7 @@ module ApplicationTests
end
RUBY
- run_test_command('-n rikka test/unit/chu_2_koi_test.rb').tap do |output|
+ run_test_command('-p rikka test/unit/chu_2_koi_test.rb').tap do |output|
assert_match "Rikka", output
assert_no_match "Sanae", output
end