From fe1f4b2ad56f010a4e9b93d547d63a15953d9dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sat, 29 Oct 2016 01:05:58 -0200 Subject: Add more rubocop rules about whitespaces --- tools/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/profile b/tools/profile index f7d91e51cf..01e513c67a 100755 --- a/tools/profile +++ b/tools/profile @@ -12,7 +12,7 @@ module CodeTools Error = Class.new(StandardError) attr_reader :path, :mode - def initialize(path, mode=nil) + def initialize(path, mode = nil) assert_ruby_file_exists(path) @path, @mode = path, mode require "benchmark" -- cgit v1.2.3 From 2b4a9735d816d3a05c7fca207d97bebcb09c95a0 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 21 Nov 2016 17:24:10 +0100 Subject: update bin/test scripts to prevent double runs. The test runner was updated to make use of autorun. This caused the `bin/test` scripts to run Minitest twice. --- tools/test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/test.rb b/tools/test.rb index 7819c13ee2..824ee57c96 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -13,3 +13,5 @@ module Rails end Rails::TestUnitReporter.executable = "bin/test" +Minitest.run_via[:rails] = true +require "active_support/testing/autorun" -- cgit v1.2.3 From 2047877f4ed31168317948a848b25a5c36f32c7b Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 17 Dec 2016 17:57:43 +0900 Subject: make work bin/test scripts with line filter `Rails::LineFiltering` is not automatically loaded, need to load it explicitly. Ref: 797f1dd, b6f935b --- tools/test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/test.rb b/tools/test.rb index 824ee57c96..ce546b382d 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -4,6 +4,8 @@ require "bundler" Bundler.setup require "rails/test_unit/minitest_plugin" +require "rails/test_unit/line_filtering" +require "active_support/test_case" module Rails # Necessary to get rerun-snippts working. @@ -12,6 +14,7 @@ module Rails end end +ActiveSupport::TestCase.extend Rails::LineFiltering Rails::TestUnitReporter.executable = "bin/test" Minitest.run_via[:rails] = true require "active_support/testing/autorun" -- cgit v1.2.3