{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1350","repository_url":"https://api.github.com/repos/ruby-grape/grape","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1350/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1350/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1350/events","html_url":"https://github.com/ruby-grape/grape/issues/1350","id":146185113,"number":1350,"title":"Failing spec in master branch","user":{"login":"przbadu","id":4189129,"avatar_url":"https://avatars.githubusercontent.com/u/4189129?v=3","gravatar_id":"","url":"https://api.github.com/users/przbadu","html_url":"https://github.com/przbadu","followers_url":"https://api.github.com/users/przbadu/followers","following_url":"https://api.github.com/users/przbadu/following{/other_user}","gists_url":"https://api.github.com/users/przbadu/gists{/gist_id}","starred_url":"https://api.github.com/users/przbadu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/przbadu/subscriptions","organizations_url":"https://api.github.com/users/przbadu/orgs","repos_url":"https://api.github.com/users/przbadu/repos","events_url":"https://api.github.com/users/przbadu/events{/privacy}","received_events_url":"https://api.github.com/users/przbadu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-06T04:42:52Z","updated_at":"2016-04-06T11:07:11Z","closed_at":null,"body":"I forked and clone `grape` and run test cases on `master` branch and I got these three failing specs:\r\n\r\n```ruby\r\nFailures:\r\n\r\n  1) Grape::API http_codes is used as presenter\r\n     Failure/Error: expect(last_response.body).to eql({ code: 408, static: 'some static text' }.to_json)\r\n\r\n       expected: \"{\\\"code\\\":408,\\\"static\\\":\\\"some static text\\\"}\"\r\n            got: \"{:code=>408, :static=>\\\"some static text\\\"}\"\r\n\r\n       (compared using eql?)\r\n     # ./spec/grape/api_spec.rb:2045:in `block (3 levels) in <top (required)>'\r\n\r\n  2) Grape::API http_codes presented with\r\n     Failure/Error: expect(last_response.body).to eql({ code: 408, static: 'some static text' }.to_json)\r\n\r\n       expected: \"{\\\"code\\\":408,\\\"static\\\":\\\"some static text\\\"}\"\r\n            got: \"{:code=>408, :static=>\\\"some static text\\\"}\"\r\n\r\n       (compared using eql?)\r\n     # ./spec/grape/api_spec.rb:2056:in `block (3 levels) in <top (required)>'\r\n\r\n  3) Grape::Middleware::Error with http code presents an error message\r\n     Failure/Error: expect(last_response.body).to eq({ code: 200, static: 'static text' }.to_json)\r\n\r\n       expected: \"{\\\"code\\\":200,\\\"static\\\":\\\"static text\\\"}\"\r\n            got: \"{:code=>200, :static=>\\\"static text\\\"}\"\r\n\r\n       (compared using ==)\r\n     # ./spec/grape/middleware/error_spec.rb:75:in `block (3 levels) in <top (required)>'\r\n\r\nFinished in 8.14 seconds (files took 4.18 seconds to load)\r\n```\r\n\r\nWe are expecting `json` response but are actually getting `String of Hash`. May be all of them are related with `presenter` and I also try to fixed it, but couldn't figure out the solution."},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/comments/206312772","html_url":"https://github.com/ruby-grape/grape/issues/1350#issuecomment-206312772","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1350","id":206312772,"user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T11:07:11Z","updated_at":"2016-04-06T11:07:11Z","body":"I can confirm that. Looks like it was introduced by grape-entity 0.5.1, which is used in specs. It work with 0.5.0. I don't see anything immediately obvious in https://github.com/ruby-grape/grape-entity/blob/master/CHANGELOG.md, opened https://github.com/ruby-grape/grape-entity/issues/213. Needs to be tracked down."}}