From 54045ccd5150fe3fdbab30fbfef48c286c3afff7 Mon Sep 17 00:00:00 2001 From: Marc Ignacio Date: Wed, 21 Jun 2017 03:50:05 +0800 Subject: Adds missing minor doc about tools/test.rb [ci skip] ... and minor typo fix --- tools/README.md | 2 ++ tools/test.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/README.md b/tools/README.md index b2e7e4b0ae..f133b27128 100644 --- a/tools/README.md +++ b/tools/README.md @@ -6,3 +6,5 @@ They aren't used by Rails apps directly. * `console` drops you in irb and loads local Rails repos * `profile` profiles `Kernel#require` to help reduce startup time * `line_statistics` provides CodeTools module and LineStatistics class to count lines + * `test` is loaded by every major component of Rails to simplify testing, for example: + `cd ./actioncable; bin/test ./path/to/actioncable_test_with_line_number.rb:5` diff --git a/tools/test.rb b/tools/test.rb index 1a1eca8f95..52e9c19198 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -8,7 +8,7 @@ require "rails/test_unit/line_filtering" require "active_support/test_case" class << Rails - # Necessary to get rerun-snippts working. + # Necessary to get rerun-snippets working. def root @root ||= Pathname.new(COMPONENT_ROOT) end -- cgit v1.2.3 From cfade1ec7ee7b5b51f3c1578e3474f9c156f2971 Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Thu, 22 Jun 2017 22:59:18 -0400 Subject: Enforce frozen string in Rubocop --- tools/console | 1 + tools/profile | 1 + tools/test.rb | 1 + 3 files changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/console b/tools/console index 58c76fb1b6..ff52308a90 100755 --- a/tools/console +++ b/tools/console @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require "bundler" Bundler.setup diff --git a/tools/profile b/tools/profile index 01e513c67a..ccbd8cfa46 100755 --- a/tools/profile +++ b/tools/profile @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # Profile require calls giving information about the time and the files that are called # when loading the provided file. # diff --git a/tools/test.rb b/tools/test.rb index 52e9c19198..189997229b 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true $: << File.expand_path("test", COMPONENT_ROOT) require "bundler" -- cgit v1.2.3 From 87b3e226d65ac1ed371620bfdcd2f950c87cfece Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sun, 2 Jul 2017 02:15:17 +0930 Subject: Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. --- tools/console | 1 - tools/profile | 1 - tools/test.rb | 1 - 3 files changed, 3 deletions(-) (limited to 'tools') diff --git a/tools/console b/tools/console index ff52308a90..58c76fb1b6 100755 --- a/tools/console +++ b/tools/console @@ -1,5 +1,4 @@ #!/usr/bin/env ruby -# frozen_string_literal: true require "bundler" Bundler.setup diff --git a/tools/profile b/tools/profile index ccbd8cfa46..01e513c67a 100755 --- a/tools/profile +++ b/tools/profile @@ -1,5 +1,4 @@ #!/usr/bin/env ruby -# frozen_string_literal: true # Profile require calls giving information about the time and the files that are called # when loading the provided file. # diff --git a/tools/test.rb b/tools/test.rb index 189997229b..52e9c19198 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true $: << File.expand_path("test", COMPONENT_ROOT) require "bundler" -- cgit v1.2.3