diff options
author | Xavier Noria <fxn@hashref.com> | 2018-09-11 23:52:27 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2018-09-11 23:57:25 +0200 |
commit | f589e20b0a865a7efd93e65b2887f0e4ab9a556f (patch) | |
tree | e9b0c87c3ade2befb7a679e0ad6181675971ab61 /railties/lib | |
parent | e9ae7a1514d660fee8cacc6a9aa7524f6f4617e3 (diff) | |
download | rails-f589e20b0a865a7efd93e65b2887f0e4ab9a556f.tar.gz rails-f589e20b0a865a7efd93e65b2887f0e4ab9a556f.tar.bz2 rails-f589e20b0a865a7efd93e65b2887f0e4ab9a556f.zip |
use "minitest" consistently
The name of the minitest library is spelled that way: regular font, and
lowercase. Lowercase is used even at the beginning of sentences, see
http://docs.seattlerb.org/minitest/
I double-checked this with @zenspider too (thanks!).
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt | 3 | ||||
-rw-r--r-- | railties/lib/rails/test_unit/runner.rb | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt b/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt index 755d19ef5d..4f7a8d3d6e 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt @@ -10,8 +10,7 @@ ActiveRecord::Migrator.migrations_paths << File.expand_path('../db/migrate', __d <% end -%> require "rails/test_help" -# Filter out Minitest backtrace while allowing backtrace from other libraries -# to be shown. +# Filter out the backtrace from minitest while preserving the one from other libraries. Minitest.backtrace_filter = Minitest::BacktraceFilter.new <% unless engine? -%> diff --git a/railties/lib/rails/test_unit/runner.rb b/railties/lib/rails/test_unit/runner.rb index 2fa7573bdf..6332a9d422 100644 --- a/railties/lib/rails/test_unit/runner.rb +++ b/railties/lib/rails/test_unit/runner.rb @@ -87,7 +87,7 @@ module Rails @filters = [ @named_filter, *derive_line_filters(patterns) ].compact end - # Minitest uses === to find matching filters. + # minitest uses === to find matching filters. def ===(method) @filters.any? { |filter| filter === method } end @@ -96,7 +96,7 @@ module Rails def derive_named_filter(filter) if filter.respond_to?(:named_filter) filter.named_filter - elsif filter =~ %r%/(.*)/% # Regexp filtering copied from Minitest. + elsif filter =~ %r%/(.*)/% # Regexp filtering copied from minitest. Regexp.new $1 elsif filter.is_a?(String) filter |