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
-
#delete ⇒ Object
Shorthand method for matching this type of route.
-
#get ⇒ Object
Shorthand method for matching this type of route.
-
#head ⇒ Object
Shorthand method for matching this type of route.
-
#options ⇒ Object
Shorthand method for matching this type of route.
-
#patch ⇒ Object
Shorthand method for matching this type of route.
-
#post ⇒ Object
Shorthand method for matching this type of route.
-
#put ⇒ Object
Shorthand method for matching this type of route.
Instance Method Details
#delete ⇒ Object
Shorthand method for matching this type of route.
116 117 118 119 120 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 116 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
#get ⇒ Object
Shorthand method for matching this type of route.
116 117 118 119 120 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 116 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
#head ⇒ Object
Shorthand method for matching this type of route.
116 117 118 119 120 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 116 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
#options ⇒ Object
Shorthand method for matching this type of route.
116 117 118 119 120 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 116 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
#patch ⇒ Object
Shorthand method for matching this type of route.
116 117 118 119 120 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 116 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
#post ⇒ Object
Shorthand method for matching this type of route.
116 117 118 119 120 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 116 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |
#put ⇒ Object
Shorthand method for matching this type of route.
116 117 118 119 120 |
# File 'lib/rspec/rails/matchers/routing_matchers.rb', line 116 %w[get post put patch delete options head].each do |method| define_method method do |path| { method.to_sym => path } end end |