mirror of https://github.com/rails/rails
Use class method module instead of DSL
This will make sure documentation is generated for the module.
This commit is contained in:
parent
3b5a4a56fb
commit
08cd280866
|
@ -11,7 +11,7 @@ module ActionDispatch
|
||||||
module RoutingAssertions
|
module RoutingAssertions
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
class_methods do
|
module ClassMethods
|
||||||
# A helper to make it easier to test different route configurations.
|
# A helper to make it easier to test different route configurations.
|
||||||
# This method temporarily replaces @routes with a new RouteSet instance
|
# This method temporarily replaces @routes with a new RouteSet instance
|
||||||
# before each test.
|
# before each test.
|
||||||
|
|
Loading…
Reference in New Issue