Module: RSpec::Rails::RoutingExampleGroup Private

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

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.

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

Methods included from Matchers

#be_a_new, #be_new_record, #be_valid, #have_http_status

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(m, *args, &block) (private)

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.

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