{"action":"created","issue":{"url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/17","repository_url":"https://api.github.com/repos/nevir/rubocop-rspec","labels_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/17/comments","events_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/17/events","html_url":"https://github.com/nevir/rubocop-rspec/issues/17","id":39082259,"number":17,"title":"Check `expect` to provide actual value","user":{"login":"geniou","id":832633,"avatar_url":"https://avatars.githubusercontent.com/u/832633?v=3","gravatar_id":"","url":"https://api.github.com/users/geniou","html_url":"https://github.com/geniou","followers_url":"https://api.github.com/users/geniou/followers","following_url":"https://api.github.com/users/geniou/following{/other_user}","gists_url":"https://api.github.com/users/geniou/gists{/gist_id}","starred_url":"https://api.github.com/users/geniou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geniou/subscriptions","organizations_url":"https://api.github.com/users/geniou/orgs","repos_url":"https://api.github.com/users/geniou/repos","events_url":"https://api.github.com/users/geniou/events{/privacy}","received_events_url":"https://api.github.com/users/geniou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nevir/rubocop-rspec/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2014-07-30T11:17:03Z","updated_at":"2016-08-02T20:07:37Z","closed_at":null,"body":"`expect` should contain the actual value, not the expected value. An idea would be to check for thinks like array, string and hash inside of `expect`.\r\n\r\nhttps://www.relishapp.com/rspec/rspec-expectations/v/3-0/docs/built-in-matchers"},"comment":{"url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/comments/237027300","html_url":"https://github.com/nevir/rubocop-rspec/issues/17#issuecomment-237027300","issue_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/17","id":237027300,"user":{"login":"backus","id":2085622,"avatar_url":"https://avatars.githubusercontent.com/u/2085622?v=3","gravatar_id":"","url":"https://api.github.com/users/backus","html_url":"https://github.com/backus","followers_url":"https://api.github.com/users/backus/followers","following_url":"https://api.github.com/users/backus/following{/other_user}","gists_url":"https://api.github.com/users/backus/gists{/gist_id}","starred_url":"https://api.github.com/users/backus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backus/subscriptions","organizations_url":"https://api.github.com/users/backus/orgs","repos_url":"https://api.github.com/users/backus/repos","events_url":"https://api.github.com/users/backus/events{/privacy}","received_events_url":"https://api.github.com/users/backus/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T20:07:37Z","updated_at":"2016-08-02T20:07:37Z","body":"I'm planning on implementing this soon hopefully. This should be a fairly easy cop to implement. Basically, when a cop encounters `expect(...)`, it will check to see if the argument is one of many literal nodes (`(int)`, `(float)`, `(true)`, etc) or an array of only literals. "}}
{"actor":{"display_login":"backus"}}