1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix more offences

This commit is contained in:
Rafael Mendonça França 2018-09-25 13:21:40 -04:00
parent f679933daa
commit 49f9dff9b6
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948
3 changed files with 3 additions and 3 deletions

View file

@ -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")

View file

@ -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"

View file

@ -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