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)

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