Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
- Included in:
- RoutingExampleGroup
- Defined in:
- lib/rspec/rails/matchers/routing_matchers.rb
Overview
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 |