{"action":"opened","issue":{"url":"https://api.github.com/repos/collectiveidea/json_spec/issues/86","labels_url":"https://api.github.com/repos/collectiveidea/json_spec/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/collectiveidea/json_spec/issues/86/comments","events_url":"https://api.github.com/repos/collectiveidea/json_spec/issues/86/events","html_url":"https://github.com/collectiveidea/json_spec/issues/86","id":83103950,"number":86,"title":"ArgumentError: bad value for range","user":{"login":"xurde","id":27406,"avatar_url":"https://avatars.githubusercontent.com/u/27406?v=3","gravatar_id":"","url":"https://api.github.com/users/xurde","html_url":"https://github.com/xurde","followers_url":"https://api.github.com/users/xurde/followers","following_url":"https://api.github.com/users/xurde/following{/other_user}","gists_url":"https://api.github.com/users/xurde/gists{/gist_id}","starred_url":"https://api.github.com/users/xurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xurde/subscriptions","organizations_url":"https://api.github.com/users/xurde/orgs","repos_url":"https://api.github.com/users/xurde/repos","events_url":"https://api.github.com/users/xurde/events{/privacy}","received_events_url":"https://api.github.com/users/xurde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-31T14:44:20Z","updated_at":"2015-05-31T14:44:20Z","closed_at":null,"body":"I'm trying to use the `have_json_size` matcher but no luck. When I used as shown below, I get an error like `ArgumentError: bad value for range`.\r\n\r\n```\r\n    context \"listing cases\" do\r\n      specify do\r\n        get \"#{API_BASE_PATH}/cases/\"\r\n        expect(last_response).to be_ok\r\n        expect { JSON.parse(last_response.body) }.not_to raise_exception\r\n        expect (last_response.body).to    have_json_size(1)\r\n      end\r\n    end\r\n```\r\nAttending to the examples it seems this syntax is ok.\r\nAny clue if I'm doing something wrong?\r\nThanks a lot in advance.\r\n"}}