Module: RSpec::Rails::RoutingExampleGroup::InstanceMethods
- Defined in:
- lib/rspec/rails/example/routing_example_group.rb
Instance Attribute Summary collapse
-
#routes ⇒ Object
readonly
Returns the value of attribute routes.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object (private)
15 16 17 |
# File 'lib/rspec/rails/example/routing_example_group.rb', line 15 def method_missing(m, *args, &block) routes.url_helpers.respond_to?(m) ? routes.url_helpers.send(m, *args) : super end |
Instance Attribute Details
#routes ⇒ Object (readonly)
Returns the value of attribute routes.
11 12 13 |
# File 'lib/rspec/rails/example/routing_example_group.rb', line 11 def routes @routes end |