Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers Private
- Included in:
- RoutingExampleGroup
- Defined in:
- lib/rspec/rails/matchers/routing_matchers.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.
Helpers for matching different route types.
Instance Method Summary (collapse)
-
- (Object) delete
Shorthand method for matching this type of route.
-
- (Object) get
Shorthand method for matching this type of route.
-
- (Object) head
Shorthand method for matching this type of route.
-
- (Object) options
Shorthand method for matching this type of route.
-
- (Object) patch
Shorthand method for matching this type of route.
-
- (Object) post
Shorthand method for matching this type of route.
-
- (Object) put
Shorthand method for matching this type of route.
Instance Method Details
- (Object) delete
Shorthand method for matching this type of route.
112 113 114 115 116 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 112 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
- (Object) get
Shorthand method for matching this type of route.
112 113 114 115 116 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 112 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
- (Object) head
Shorthand method for matching this type of route.
112 113 114 115 116 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 112 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
- (Object) options
Shorthand method for matching this type of route.
112 113 114 115 116 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 112 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
- (Object) patch
Shorthand method for matching this type of route.
112 113 114 115 116 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 112 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
- (Object) post
Shorthand method for matching this type of route.
112 113 114 115 116 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 112 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
- (Object) put
Shorthand method for matching this type of route.
112 113 114 115 116 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 112 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |