make bot happy

上级 d8c0aa88
......@@ -97,7 +97,7 @@ def config
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")
......
......@@ -49,7 +49,7 @@ class LayoutAutoDiscoveryTest < ActionController::TestCase
include TemplateHandlerHelper
with_routes do
get :hello, to: 'views#hello'
get :hello, to: "views#hello"
end
def setup
......@@ -153,8 +153,8 @@ class LayoutSetInResponseTest < ActionController::TestCase
include TemplateHandlerHelper
with_routes do
get :hello, to: 'views#hello'
get :hello, to: 'views#goodbye'
get :hello, to: "views#hello"
get :hello, to: "views#goodbye"
end
def test_layout_set_when_using_default_layout
......@@ -244,7 +244,7 @@ class SetsNonExistentLayoutFile < LayoutTest
class LayoutExceptionRaisedTest < ActionController::TestCase
with_routes do
get :hello, to: 'views#hello'
get :hello, to: "views#hello"
end
def test_exception_raised_when_layout_file_not_found
......@@ -261,7 +261,7 @@ def hello
class LayoutStatusIsRenderedTest < ActionController::TestCase
with_routes do
get :hello, to: 'views#hello'
get :hello, to: "views#hello"
end
def test_layout_status_is_rendered
......@@ -278,7 +278,7 @@ class LayoutSymlinkedTest < LayoutTest
class LayoutSymlinkedIsRenderedTest < ActionController::TestCase
with_routes do
get :hello, to: 'views#hello'
get :hello, to: "views#hello"
end
def test_symlinked_layout_is_rendered
......
......@@ -63,7 +63,7 @@ def self.use_relative_model_naming?
class PolymorphicRoutesTest < ActionController::TestCase
Routes = ActionDispatch::Routing::RouteSet.new
Routes.draw { }
Routes.draw {}
include Routes.url_helpers
default_url_options[:host] = "example.com"
......
......@@ -15,7 +15,7 @@ def protect_against_forgery?() false end
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册