{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/1274","labels_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1274/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1274/comments","events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1274/events","html_url":"https://github.com/rspec/rspec-rails/issues/1274","id":54178397,"number":1274,"title":"UnknownHttpMethod for routing specs that route all HTTP methods","user":{"login":"dideler","id":497458,"avatar_url":"https://avatars.githubusercontent.com/u/497458?v=3","gravatar_id":"","url":"https://api.github.com/users/dideler","html_url":"https://github.com/dideler","followers_url":"https://api.github.com/users/dideler/followers","following_url":"https://api.github.com/users/dideler/following{/other_user}","gists_url":"https://api.github.com/users/dideler/gists{/gist_id}","starred_url":"https://api.github.com/users/dideler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dideler/subscriptions","organizations_url":"https://api.github.com/users/dideler/orgs","repos_url":"https://api.github.com/users/dideler/repos","events_url":"https://api.github.com/users/dideler/events{/privacy}","received_events_url":"https://api.github.com/users/dideler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-13T10:59:56Z","updated_at":"2015-01-13T22:25:16Z","closed_at":"2015-01-13T16:16:57Z","body":"_Not sure if this is an RSpec issue, opening an issue here just in case._\r\n\r\nSome of my routing specs are suddenly failing for routes that match all HTTP methods.\r\n\r\n```ruby\r\n# config/routes.rb\r\n\r\nmatch '/webhooks/mailgun/emails', to: 'webhooks/mailgun#emails', via: :all\r\n```\r\n\r\n```ruby\r\n# spec/controllers/webhooks/mailgun_controller_spec.rb\r\n\r\nit \"routes all HTTP methods to #emails\" do\r\n  expect(all: 'webhooks/mailgun/emails').to route_to(controller: 'webhooks/mailgun', action: 'emails')\r\nend\r\n\r\n# Same error when using shoulda-matchers syntax\r\nit { should route(:all, 'webhooks/mailgun/emails').to(action: :emails) }\r\n```\r\n\r\nGives the failure\r\n```\r\n1) Webhooks::MailgunController should route ALL webhooks/mailgun/emails to/from {:action=>\"emails\", :controller=>\"webhooks/mailgun\"}\r\n   Failure/Error: expect(all: 'webhooks/mailgun/emails').to route_to(controller: 'webhooks/mailgun', action: 'emails')\r\n   ActionController::UnknownHttpMethod:\r\n     ALL, accepted HTTP methods are OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK, VERSION-CONTROL, REPORT, CHECKOUT, CHECKIN, UNCHECKOUT, MKWORKSPACE, UPDATE, LABEL, MERGE, BASELINE-CONTROL, MKACTIVITY, ORDERPATCH, ACL, SEARCH, MKCALENDAR, and PATCH\r\n```\r\n\r\nI recently upgraded to Rails 4.2. Could it be caused by the new HTTP method (MKCALENDAR) added in Rails 4.2 and RSpec not taking that into consideration? https://github.com/rails/rails/pull/15121"},"comment":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/69832959","html_url":"https://github.com/rspec/rspec-rails/issues/1274#issuecomment-69832959","issue_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1274","id":69832959,"user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T22:25:16Z","updated_at":"2015-01-13T22:25:16Z","body":"This is handled by Rails so it's likely they've changed the allowed routes for testing under Rails 4.2, instead you will probably find that the individual ones pass because all accepts hthem."}}