Module: RSpec::Rails::RoutingExampleGroup::ClassMethods
- Defined in:
- lib/rspec/rails/example/routing_example_group.rb
Overview
Class-level DSL for route specs.
Instance Method Summary collapse
-
#routes ⇒ Object
Specifies the routeset that will be used for the example group.
Instance Method Details
#routes ⇒ Object
Specifies the routeset that will be used for the example group. This is most useful when testing Rails engines.
33 34 35 36 37 |
# File 'lib/rspec/rails/example/routing_example_group.rb', line 33 def routes before do self.routes = yield end end |