aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/test_unit
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-01-24 12:10:46 +0100
committerYves Senn <yves.senn@gmail.com>2015-03-18 09:52:18 +0100
commit613bdd9d4c6b024cbc26186f1ad443faa6cdffb1 (patch)
tree848606bfca3bb60ec633b2669bc5a87c2cce0cc5 /railties/test/test_unit
parentfb2dc2adcad11cea8573536621d9a0841be7901b (diff)
downloadrails-613bdd9d4c6b024cbc26186f1ad443faa6cdffb1.tar.gz
rails-613bdd9d4c6b024cbc26186f1ad443faa6cdffb1.tar.bz2
rails-613bdd9d4c6b024cbc26186f1ad443faa6cdffb1.zip
get rid of NAMED_PATTERNS in favor of running a whole directory
Diffstat (limited to 'railties/test/test_unit')
-rw-r--r--railties/test/test_unit/runner_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/test_unit/runner_test.rb b/railties/test/test_unit/runner_test.rb
index fa906d4080..be226e3aa5 100644
--- a/railties/test/test_unit/runner_test.rb
+++ b/railties/test/test_unit/runner_test.rb
@@ -44,4 +44,12 @@ class TestUnitTestRunnerTest < ActiveSupport::TestCase
runner = Rails::TestRunner.new(options)
assert_nil runner.find_method
end
+
+ test "run all tests in a directory" do
+ options = @options.parse([__dir__])
+
+ assert_equal "#{__dir__}/**/*_test.rb", options[:pattern]
+ assert_nil options[:filename]
+ assert_nil options[:line]
+ end
end