{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/1262","labels_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1262/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1262/comments","events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1262/events","html_url":"https://github.com/rspec/rspec-rails/issues/1262","id":53061953,"number":1262,"title":"Routing specs undefined method 'message' on Ruby 2.2","user":{"login":"nathany","id":4566,"avatar_url":"https://avatars.githubusercontent.com/u/4566?v=3","gravatar_id":"","url":"https://api.github.com/users/nathany","html_url":"https://github.com/nathany","followers_url":"https://api.github.com/users/nathany/followers","following_url":"https://api.github.com/users/nathany/following{/other_user}","gists_url":"https://api.github.com/users/nathany/gists{/gist_id}","starred_url":"https://api.github.com/users/nathany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathany/subscriptions","organizations_url":"https://api.github.com/users/nathany/orgs","repos_url":"https://api.github.com/users/nathany/repos","events_url":"https://api.github.com/users/nathany/events{/privacy}","received_events_url":"https://api.github.com/users/nathany/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-12-29T18:56:12Z","updated_at":"2015-01-22T14:06:40Z","closed_at":"2014-12-30T04:01:17Z","body":"When upgrading from Ruby 2.1.5 to Ruby 2.2 I see test failures in all our routing specs.\r\n\r\n```\r\nFailure/Error: expect(get(\"/time_sheets\")).to route_to(\"time_sheet/time_sheets#day\")\r\n     NoMethodError:\r\n       undefined method `message' for #<#<Class:0x007fa9ab213160>:0x007fa998fe2948>\r\n```\r\n\r\nThis is using rspec-rails 3.1.0 and **Rails 4.0.12**. I tried testing against rspec-rails master but it appears to be a bit convoluted.\r\n\r\n```\r\nCould not find gem 'rspec-core (= 3.2.0.pre) ruby', which is required by gem 'rspec-rails (>= 0) ruby', in any of the\r\nsources.\r\n```\r\n\r\nI see you are already testing against Ruby 2.2 and Travis CI is passing. Curious."},"comment":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/71024515","html_url":"https://github.com/rspec/rspec-rails/issues/1262#issuecomment-71024515","issue_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1262","id":71024515,"user":{"login":"diazruy","id":484865,"avatar_url":"https://avatars.githubusercontent.com/u/484865?v=3","gravatar_id":"","url":"https://api.github.com/users/diazruy","html_url":"https://github.com/diazruy","followers_url":"https://api.github.com/users/diazruy/followers","following_url":"https://api.github.com/users/diazruy/following{/other_user}","gists_url":"https://api.github.com/users/diazruy/gists{/gist_id}","starred_url":"https://api.github.com/users/diazruy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diazruy/subscriptions","organizations_url":"https://api.github.com/users/diazruy/orgs","repos_url":"https://api.github.com/users/diazruy/repos","events_url":"https://api.github.com/users/diazruy/events{/privacy}","received_events_url":"https://api.github.com/users/diazruy/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T14:06:40Z","updated_at":"2015-01-22T14:06:40Z","body":"@cupakromer I am getting this in all of my specs in `spec/routing` as of my upgrade to Rails 4. Tests were passing on 3.2.18\r\n\r\n```\r\n# spec/routing/agents_spec.rb\r\n\r\ndescribe \"routes for Agents\" do\r\n  it \"routes /agents/1/bob-smith to the agent show\" do\r\n    expect(get(\"/agents/1/bob-smith\")).to route_to(\r\n      controller: 'property/agents',\r\n      id: '1',\r\n      action: 'show',\r\n      permalink: 'bob-smith'\r\n    )\r\n  end\r\nend\r\n\r\n```"}}