Module: RSpec::Rails::RoutingExampleGroup::ClassMethods Private
- Defined in:
- lib/rspec/rails/example/routing_example_group.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class-level DSL for route specs.
Instance Method Summary (collapse)
-
- (Object) routes
private
Specifies the routeset that will be used for the example group.
Instance Method Details
- (Object) routes
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Specifies the routeset that will be used for the example group. This is most useful when testing Rails engines.
32 33 34 35 36 |
# File 'lib/rspec/rails/example/routing_example_group.rb', line 32 def routes before do self.routes = yield end end |