{"action":"created","issue":{"url":"https://api.github.com/repos/turbolinks/turbolinks/issues/389","repository_url":"https://api.github.com/repos/turbolinks/turbolinks","labels_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/389/comments","events_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/389/events","html_url":"https://github.com/turbolinks/turbolinks/issues/389","id":323972888,"number":389,"title":"undefined method `get?' for 302:Integer","user":{"login":"coorasse","id":1319150,"avatar_url":"https://avatars3.githubusercontent.com/u/1319150?v=4","gravatar_id":"","url":"https://api.github.com/users/coorasse","html_url":"https://github.com/coorasse","followers_url":"https://api.github.com/users/coorasse/followers","following_url":"https://api.github.com/users/coorasse/following{/other_user}","gists_url":"https://api.github.com/users/coorasse/gists{/gist_id}","starred_url":"https://api.github.com/users/coorasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coorasse/subscriptions","organizations_url":"https://api.github.com/users/coorasse/orgs","repos_url":"https://api.github.com/users/coorasse/repos","events_url":"https://api.github.com/users/coorasse/events{/privacy}","received_events_url":"https://api.github.com/users/coorasse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T10:57:23Z","updated_at":"2018-05-17T13:44:00Z","closed_at":"2018-05-17T13:44:00Z","author_association":"NONE","body":"This issue has been reported on stackoverflow and I see that it has not yet been addressed:\r\n\r\nhttps://stackoverflow.com/questions/49294119/undefined-method-get-for-302integer\r\n\r\nFrom SO:\r\n\r\n```ruby\r\ndescribe 'DELETE /salesman/:id' do\r\n  let!(:salesman) { create :salesman }\r\n  subject(:request) do\r\n    delete salesman_path(salesman), headers: auth_headers\r\n  end\r\n\r\n  it 'redirects to index' do\r\n    expect(request).to redirect_to company_salesmen_path(salesman.company)\r\n  end\r\nend\r\n```\r\n\r\n```\r\nFailure/Error: expect(request).to redirect_to company_salesmen_path(salesman.company)\r\n\r\nNoMethodError:\r\n    undefined method `get?' for 302:Integer\r\n  # /Users/dennish/.rvm/gems/ruby-2.5.0/gems/turbolinks-5.1.0/lib/turbolinks/assertions.rb:37:in `turbolinks_request?'\r\n  # /Users/dennish/.rvm/gems/ruby-2.5.0/gems/turbolinks-5.1.0/lib/turbolinks/assertions.rb:6:in `assert_redirected_to'\r\n  # ./spec/requests/salesmen_spec.rb:206:in `block (3 levels) in <top (required)>'\r\n```"},"comment":{"url":"https://api.github.com/repos/turbolinks/turbolinks/issues/comments/389870879","html_url":"https://github.com/turbolinks/turbolinks/issues/389#issuecomment-389870879","issue_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/389","id":389870879,"user":{"login":"sstephenson","id":2603,"avatar_url":"https://avatars2.githubusercontent.com/u/2603?v=4","gravatar_id":"","url":"https://api.github.com/users/sstephenson","html_url":"https://github.com/sstephenson","followers_url":"https://api.github.com/users/sstephenson/followers","following_url":"https://api.github.com/users/sstephenson/following{/other_user}","gists_url":"https://api.github.com/users/sstephenson/gists{/gist_id}","starred_url":"https://api.github.com/users/sstephenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstephenson/subscriptions","organizations_url":"https://api.github.com/users/sstephenson/orgs","repos_url":"https://api.github.com/users/sstephenson/repos","events_url":"https://api.github.com/users/sstephenson/events{/privacy}","received_events_url":"https://api.github.com/users/sstephenson/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T13:44:00Z","updated_at":"2018-05-17T13:44:00Z","author_association":"CONTRIBUTOR","body":"Could you please [open an issue in the turbolinks-rails repository](https://github.com/turbolinks/turbolinks-rails/issues)? This repo is for the JavaScript library. Thanks!"}}
{"actor":{"display_login":"sstephenson"}}