aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-15 14:36:24 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-15 14:37:35 -0300
commitcf50bbd68c6ceb5a1ac095c5407b79cfc7214788 (patch)
tree4496d3af1e21042072ffd38720eab1b5da7a0b2f /actionpack/test
parent1ad4b489919a679f29a3bc5a331542bd26e5b5a6 (diff)
parent42728c70ee9ef6366549adcdb8167440849206d9 (diff)
downloadrails-cf50bbd68c6ceb5a1ac095c5407b79cfc7214788.tar.gz
rails-cf50bbd68c6ceb5a1ac095c5407b79cfc7214788.tar.bz2
rails-cf50bbd68c6ceb5a1ac095c5407b79cfc7214788.zip
Merge pull request #15121 from skarpesh/rfc4791-methods
Add RFC 4791 MKCALENDAR method
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/routing_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index 0a13dcfad4..cae6b312b6 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -3553,6 +3553,7 @@ class TestHttpMethods < ActionDispatch::IntegrationTest
RFC3648 = %w(ORDERPATCH)
RFC3744 = %w(ACL)
RFC5323 = %w(SEARCH)
+ RFC4791 = %w(MKCALENDAR)
RFC5789 = %w(PATCH)
def simple_app(response)
@@ -3564,13 +3565,13 @@ class TestHttpMethods < ActionDispatch::IntegrationTest
@app = ActionDispatch::Routing::RouteSet.new
@app.draw do
- (RFC2616 + RFC2518 + RFC3253 + RFC3648 + RFC3744 + RFC5323 + RFC5789).each do |method|
+ (RFC2616 + RFC2518 + RFC3253 + RFC3648 + RFC3744 + RFC5323 + RFC4791 + RFC5789).each do |method|
match '/' => s.simple_app(method), :via => method.underscore.to_sym
end
end
end
- (RFC2616 + RFC2518 + RFC3253 + RFC3648 + RFC3744 + RFC5323 + RFC5789).each do |method|
+ (RFC2616 + RFC2518 + RFC3253 + RFC3648 + RFC3744 + RFC5323 + RFC4791 + RFC5789).each do |method|
test "request method #{method.underscore} can be matched" do
get '/', nil, 'REQUEST_METHOD' => method
assert_equal method, @response.body