diff options
author | Andrew White <andrew.white@unboxed.co> | 2018-02-22 06:26:48 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2018-02-22 06:26:48 +0000 |
commit | 9c0c90979a759a41628e0cd9d73821b0b34d03fc (patch) | |
tree | 185a050bd95d91ad79f5f52f4330bbc859498b47 /railties/test/generators | |
parent | a5e81342af6b71c7247ec3caf4e68d1baa4e465a (diff) | |
download | rails-9c0c90979a759a41628e0cd9d73821b0b34d03fc.tar.gz rails-9c0c90979a759a41628e0cd9d73821b0b34d03fc.tar.bz2 rails-9c0c90979a759a41628e0cd9d73821b0b34d03fc.zip |
Add cop for preferring 'Foo.method' over 'Foo::method'
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/api_app_generator_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/shared_generator_tests.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/api_app_generator_test.rb b/railties/test/generators/api_app_generator_test.rb index 857124b23a..9c523ad372 100644 --- a/railties/test/generators/api_app_generator_test.rb +++ b/railties/test/generators/api_app_generator_test.rb @@ -13,7 +13,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase Rails.application = TestApp::Application super - Kernel::silence_warnings do + Kernel.silence_warnings do Thor::Base.shell.send(:attr_accessor, :always_force) @shell = Thor::Base.shell.new @shell.send(:always_force=, true) diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb index 97d43af60a..aa577e4234 100644 --- a/railties/test/generators/shared_generator_tests.rb +++ b/railties/test/generators/shared_generator_tests.rb @@ -9,7 +9,7 @@ module SharedGeneratorTests super Rails::Generators::AppGenerator.instance_variable_set("@desc", nil) - Kernel::silence_warnings do + Kernel.silence_warnings do Thor::Base.shell.send(:attr_accessor, :always_force) @shell = Thor::Base.shell.new @shell.send(:always_force=, true) |