diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-09-25 13:21:40 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-09-25 13:21:40 -0400 |
commit | 49f9dff9b6ba1451d8c85927d5f75327bd2322d9 (patch) | |
tree | bc7ba9d75a647e2ee6fb3866d0ebe444cd6fb699 | |
parent | f679933daa257a23095a6d7ad04aa2cbd3c7907e (diff) | |
download | rails-49f9dff9b6ba1451d8c85927d5f75327bd2322d9.tar.gz rails-49f9dff9b6ba1451d8c85927d5f75327bd2322d9.tar.bz2 rails-49f9dff9b6ba1451d8c85927d5f75327bd2322d9.zip |
Fix more offences
-rw-r--r-- | actionview/test/abstract_unit.rb | 2 | ||||
-rw-r--r-- | actionview/test/activerecord/polymorphic_routes_test.rb | 2 | ||||
-rw-r--r-- | actionview/test/template/erb/helper.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb index 6dbebb3c02..f90626ad9e 100644 --- a/actionview/test/abstract_unit.rb +++ b/actionview/test/abstract_unit.rb @@ -97,7 +97,7 @@ end class ActionDispatch::IntegrationTest < ActiveSupport::TestCase def self.build_app(routes = nil) routes ||= ActionDispatch::Routing::RouteSet.new.tap { |rs| - rs.draw {} + rs.draw { } } RoutedRackApp.new(routes) do |middleware| middleware.use ActionDispatch::ShowExceptions, ActionDispatch::PublicExceptions.new("#{FIXTURE_LOAD_PATH}/public") diff --git a/actionview/test/activerecord/polymorphic_routes_test.rb b/actionview/test/activerecord/polymorphic_routes_test.rb index 25e05f6222..724129a7d9 100644 --- a/actionview/test/activerecord/polymorphic_routes_test.rb +++ b/actionview/test/activerecord/polymorphic_routes_test.rb @@ -63,7 +63,7 @@ end class PolymorphicRoutesTest < ActionController::TestCase Routes = ActionDispatch::Routing::RouteSet.new - Routes.draw {} + Routes.draw { } include Routes.url_helpers default_url_options[:host] = "example.com" diff --git a/actionview/test/template/erb/helper.rb b/actionview/test/template/erb/helper.rb index 2d31b19be8..727cc3dcf2 100644 --- a/actionview/test/template/erb/helper.rb +++ b/actionview/test/template/erb/helper.rb @@ -15,7 +15,7 @@ module ERBTest class BlockTestCase < ActiveSupport::TestCase def render_content(start, inside, routes = nil) routes ||= ActionDispatch::Routing::RouteSet.new.tap do |rs| - rs.draw {} + rs.draw { } end context = Class.new(ViewContext) { include routes.url_helpers |