Module: RSpec::Rails::RoutingExampleGroup

Extended by:
ActiveSupport::Concern
Includes:
AssertionDelegator.new( ActionDispatch::Assertions::RoutingAssertions ), Matchers::RoutingMatchers, Matchers::RoutingMatchers::RouteHelpers, RailsExampleGroup
Defined in:
lib/rspec/rails/example/routing_example_group.rb

Overview

Container module for routing spec functionality.

Defined Under Namespace

Modules: ClassMethods

Method Summary

Methods included from Matchers::RoutingMatchers::RouteHelpers

#delete, #get, #head, #options, #patch, #post, #put

Methods included from Matchers::RoutingMatchers

#be_routable, #route_to

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object (private)

58
59
60
# File 'lib/rspec/rails/example/routing_example_group.rb', line 58
def method_missing(m, *args, &block)
  routes.url_helpers.respond_to?(m) ? routes.url_helpers.send(m, *args) : super
end