{"action":"created","issue":{"url":"https://api.github.com/repos/kurenn/market_place_api/issues/17","labels_url":"https://api.github.com/repos/kurenn/market_place_api/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/kurenn/market_place_api/issues/17/comments","events_url":"https://api.github.com/repos/kurenn/market_place_api/issues/17/events","html_url":"https://github.com/kurenn/market_place_api/issues/17","id":71084181,"number":17,"title":"Chapter 5 - Authenticating users: error undefined method to_key","user":{"login":"levi-l-damian","id":5083376,"avatar_url":"https://avatars.githubusercontent.com/u/5083376?v=3","gravatar_id":"","url":"https://api.github.com/users/levi-l-damian","html_url":"https://github.com/levi-l-damian","followers_url":"https://api.github.com/users/levi-l-damian/followers","following_url":"https://api.github.com/users/levi-l-damian/following{/other_user}","gists_url":"https://api.github.com/users/levi-l-damian/gists{/gist_id}","starred_url":"https://api.github.com/users/levi-l-damian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levi-l-damian/subscriptions","organizations_url":"https://api.github.com/users/levi-l-damian/orgs","repos_url":"https://api.github.com/users/levi-l-damian/repos","events_url":"https://api.github.com/users/levi-l-damian/events{/privacy}","received_events_url":"https://api.github.com/users/levi-l-damian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-26T15:42:03Z","updated_at":"2015-04-27T23:51:42Z","closed_at":null,"body":"Test failing after adding the code for destroy as it is in Listing 5.8: Destroy action sessions (app/controllers/api/v1/sessions_controller.rb)\r\nrspec spec/controllers/api/v1/sessions_controller_spec.rb\r\n....F\r\nFailures:\r\n  1) Api::V1::SessionsController DELETE #destroy \r\n     Failure/Error: sign_in @user, store: false\r\n     NoMethodError:\r\n       undefined method `to_key' for {:store=>false}:Hash\r\n     # ./spec/controllers/api/v1/sessions_controller_spec.rb:40:in `block (3 levels) in <top (required)>'\r\nFinished in 0.15741 seconds\r\n5 examples, 1 failure\r\nFailed examples:\r\nrspec ./spec/controllers/api/v1/sessions_controller_spec.rb:44 # Api::V1::SessionsController DELETE #destroy \r\nRandomized with seed 203"},"comment":{"url":"https://api.github.com/repos/kurenn/market_place_api/issues/comments/96852716","html_url":"https://github.com/kurenn/market_place_api/issues/17#issuecomment-96852716","issue_url":"https://api.github.com/repos/kurenn/market_place_api/issues/17","id":96852716,"user":{"login":"kurenn","id":236312,"avatar_url":"https://avatars.githubusercontent.com/u/236312?v=3","gravatar_id":"","url":"https://api.github.com/users/kurenn","html_url":"https://github.com/kurenn","followers_url":"https://api.github.com/users/kurenn/followers","following_url":"https://api.github.com/users/kurenn/following{/other_user}","gists_url":"https://api.github.com/users/kurenn/gists{/gist_id}","starred_url":"https://api.github.com/users/kurenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurenn/subscriptions","organizations_url":"https://api.github.com/users/kurenn/orgs","repos_url":"https://api.github.com/users/kurenn/repos","events_url":"https://api.github.com/users/kurenn/events{/privacy}","received_events_url":"https://api.github.com/users/kurenn/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T23:51:42Z","updated_at":"2015-04-27T23:51:42Z","body":"I managed to fix it, just remove the `store: false` options hash as mentioned  on https://github.com/plataformatec/devise/issues/3532\r\n\r\nIt should look something like:\r\n\r\n```ruby\r\n describe \"DELETE #destroy\" do\r\n    before(:each) do\r\n      @user = FactoryGirl.create :user\r\n      sign_in @user\r\n      delete :destroy, id: @user.auth_token\r\n    end\r\n\r\n    it { should respond_with 204 }\r\n  end\r\n```"}}