aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/test_unit
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-14 15:00:37 -0400
committerGitHub <noreply@github.com>2017-08-14 15:00:37 -0400
commit5ccdd0bb6d1262a670645ddf3a9e334be4545dac (patch)
tree2211326df8c4681bf56f6049a97941c427dd9b02 /railties/lib/rails/test_unit
parent5a5b4816f14f18a4326f37e0a00854c2fcf4904c (diff)
parent7f6a31433a09875828431d0f11029bf0dbddb112 (diff)
downloadrails-5ccdd0bb6d1262a670645ddf3a9e334be4545dac.tar.gz
rails-5ccdd0bb6d1262a670645ddf3a9e334be4545dac.tar.bz2
rails-5ccdd0bb6d1262a670645ddf3a9e334be4545dac.zip
Merge pull request #29891 from pat/frozen-string-literals-railties
Railties updates for frozen string literals.
Diffstat (limited to 'railties/lib/rails/test_unit')
-rw-r--r--railties/lib/rails/test_unit/line_filtering.rb2
-rw-r--r--railties/lib/rails/test_unit/railtie.rb2
-rw-r--r--railties/lib/rails/test_unit/reporter.rb2
-rw-r--r--railties/lib/rails/test_unit/testing.rake2
4 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/rails/test_unit/line_filtering.rb b/railties/lib/rails/test_unit/line_filtering.rb
index 289afae331..e8b891d07b 100644
--- a/railties/lib/rails/test_unit/line_filtering.rb
+++ b/railties/lib/rails/test_unit/line_filtering.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require "method_source"
require "rails/test_unit/runner"
diff --git a/railties/lib/rails/test_unit/railtie.rb b/railties/lib/rails/test_unit/railtie.rb
index f1965f3b12..05f9a177d0 100644
--- a/railties/lib/rails/test_unit/railtie.rb
+++ b/railties/lib/rails/test_unit/railtie.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require_relative "line_filtering"
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
diff --git a/railties/lib/rails/test_unit/reporter.rb b/railties/lib/rails/test_unit/reporter.rb
index ab28034d27..7d3164f1eb 100644
--- a/railties/lib/rails/test_unit/reporter.rb
+++ b/railties/lib/rails/test_unit/reporter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require "active_support/core_ext/class/attribute"
require "minitest"
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake
index 97dd5cef10..18d699f806 100644
--- a/railties/lib/rails/test_unit/testing.rake
+++ b/railties/lib/rails/test_unit/testing.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
gem "minitest"
require "minitest"
require_relative "runner"