{"action":"created","issue":{"url":"https://api.github.com/repos/moll/js-must/issues/45","repository_url":"https://api.github.com/repos/moll/js-must","labels_url":"https://api.github.com/repos/moll/js-must/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/moll/js-must/issues/45/comments","events_url":"https://api.github.com/repos/moll/js-must/issues/45/events","html_url":"https://github.com/moll/js-must/issues/45","id":154962291,"number":45,"title":".eql explodes with thinky","user":{"login":"MadRabbit","id":14523,"avatar_url":"https://avatars.githubusercontent.com/u/14523?v=3","gravatar_id":"","url":"https://api.github.com/users/MadRabbit","html_url":"https://github.com/MadRabbit","followers_url":"https://api.github.com/users/MadRabbit/followers","following_url":"https://api.github.com/users/MadRabbit/following{/other_user}","gists_url":"https://api.github.com/users/MadRabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/MadRabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadRabbit/subscriptions","organizations_url":"https://api.github.com/users/MadRabbit/orgs","repos_url":"https://api.github.com/users/MadRabbit/repos","events_url":"https://api.github.com/users/MadRabbit/events{/privacy}","received_events_url":"https://api.github.com/users/MadRabbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-16T05:19:26Z","updated_at":"2016-05-16T08:13:21Z","closed_at":null,"body":"hey andri, i thought i'd report this one. if i have two instances of a [thinky](thinky.io) model and then try to compare them against each other with `.eql` like so:\r\n```js\r\nconst user1 = yield User.get(\"123\").run();\r\nconst user2 = yield User.get(\"123\").run();\r\n\r\nuser1.must.eql(user2);\r\n```\r\nit explodes and complains about JSON serialization issues\r\n```\r\nReqlDriverError: `toJSON` takes 0 argument, 1 provided after:\r\nr.table(\"User\")\r\n      at Term._arity (node_modules/rethinkdbdash/lib/term.js:3014:11)\r\n      at Term.toJsonString (node_modules/rethinkdbdash/lib/term.js:2765:10)\r\n      at Query.(anonymous function) [as toJSON] (node_modules/thinky/lib/query.js:814:60)\r\n      at Model.(anonymous function) [as toJSON] (node_modules/thinky/lib/model.js:722:32)\r\n      at Object.stringify (native)\r\n      at exports.stringify (node_modules/must/lib/index.js:38:19)\r\n      at Must.assert (node_modules/must/must.js:1151:13)\r\n      at Must.eql (node_modules/must/must.js:544:8)\r\n      at Context.<anonymous> (test/models/user_test.js:53:19)\r\n      at next (native)\r\n      at onFulfilled (node_modules/co/index.js:65:19)\r\n```"},"comment":{"url":"https://api.github.com/repos/moll/js-must/issues/comments/219372312","html_url":"https://github.com/moll/js-must/issues/45#issuecomment-219372312","issue_url":"https://api.github.com/repos/moll/js-must/issues/45","id":219372312,"user":{"login":"MadRabbit","id":14523,"avatar_url":"https://avatars.githubusercontent.com/u/14523?v=3","gravatar_id":"","url":"https://api.github.com/users/MadRabbit","html_url":"https://github.com/MadRabbit","followers_url":"https://api.github.com/users/MadRabbit/followers","following_url":"https://api.github.com/users/MadRabbit/following{/other_user}","gists_url":"https://api.github.com/users/MadRabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/MadRabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadRabbit/subscriptions","organizations_url":"https://api.github.com/users/MadRabbit/orgs","repos_url":"https://api.github.com/users/MadRabbit/repos","events_url":"https://api.github.com/users/MadRabbit/events{/privacy}","received_events_url":"https://api.github.com/users/MadRabbit/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T08:13:20Z","updated_at":"2016-05-16T08:13:20Z","body":"thanks! :)"}}