{"action":"created","issue":{"url":"https://api.github.com/repos/henrik/ectoo/issues/3","labels_url":"https://api.github.com/repos/henrik/ectoo/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/henrik/ectoo/issues/3/comments","events_url":"https://api.github.com/repos/henrik/ectoo/issues/3/events","html_url":"https://github.com/henrik/ectoo/issues/3","id":125308486,"number":3,"title":"Ectoo.max(Repo, Candidate, :id) gives \"** (ArithmeticError) bad argument in arithmetic expression\"","user":{"login":"vraravam","id":69629,"avatar_url":"https://avatars.githubusercontent.com/u/69629?v=3","gravatar_id":"","url":"https://api.github.com/users/vraravam","html_url":"https://github.com/vraravam","followers_url":"https://api.github.com/users/vraravam/followers","following_url":"https://api.github.com/users/vraravam/following{/other_user}","gists_url":"https://api.github.com/users/vraravam/gists{/gist_id}","starred_url":"https://api.github.com/users/vraravam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vraravam/subscriptions","organizations_url":"https://api.github.com/users/vraravam/orgs","repos_url":"https://api.github.com/users/vraravam/repos","events_url":"https://api.github.com/users/vraravam/events{/privacy}","received_events_url":"https://api.github.com/users/vraravam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-07T02:30:30Z","updated_at":"2016-01-10T01:58:42Z","closed_at":null,"body":"I'm not sure why, but this only fails for the first call in the spec. The second call to ```Ectoo.max/3``` always passes. Also, I have used ```Ectoo.count/2``` without any issues."},"comment":{"url":"https://api.github.com/repos/henrik/ectoo/issues/comments/170300333","html_url":"https://github.com/henrik/ectoo/issues/3#issuecomment-170300333","issue_url":"https://api.github.com/repos/henrik/ectoo/issues/3","id":170300333,"user":{"login":"vraravam","id":69629,"avatar_url":"https://avatars.githubusercontent.com/u/69629?v=3","gravatar_id":"","url":"https://api.github.com/users/vraravam","html_url":"https://github.com/vraravam","followers_url":"https://api.github.com/users/vraravam/followers","following_url":"https://api.github.com/users/vraravam/following{/other_user}","gists_url":"https://api.github.com/users/vraravam/gists{/gist_id}","starred_url":"https://api.github.com/users/vraravam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vraravam/subscriptions","organizations_url":"https://api.github.com/users/vraravam/orgs","repos_url":"https://api.github.com/users/vraravam/repos","events_url":"https://api.github.com/users/vraravam/events{/privacy}","received_events_url":"https://api.github.com/users/vraravam/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T01:58:42Z","updated_at":"2016-01-10T01:58:42Z","body":"Yes - even with everything else removed, and only the barebones test method alone, the same issue occurred. What's interesting was that the 2nd call passed on my OSX, while in our CI server (linux), even that failed. So I had to not use the ```Ectoo.max/3``` call."}}