Module: RSpec::Rails::RoutingExampleGroup::ClassMethods
- Defined in:
- lib/rspec/rails/example/routing_example_group.rb
Instance Method Summary (collapse)
-
- (Object) routes(&blk)
Specifies the routeset that will be used for the example group.
Instance Method Details
- (Object) routes(&blk)
Specifies the routeset that will be used for the example group. This is most useful when testing Rails engines.
25 26 27 28 29 |
# File 'lib/rspec/rails/example/routing_example_group.rb', line 25 def routes(&blk) before do self.routes = blk.call end end |