{"action":"created","issue":{"url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/64","repository_url":"https://api.github.com/repos/state-machines/state_machines-activerecord","labels_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/64/comments","events_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/64/events","html_url":"https://github.com/state-machines/state_machines-activerecord/issues/64","id":271485146,"number":64,"title":"Transition specs fails when switching to state_machines-activerecord","user":{"login":"RemyMaucourt","id":26973587,"avatar_url":"https://avatars2.githubusercontent.com/u/26973587?v=4","gravatar_id":"","url":"https://api.github.com/users/RemyMaucourt","html_url":"https://github.com/RemyMaucourt","followers_url":"https://api.github.com/users/RemyMaucourt/followers","following_url":"https://api.github.com/users/RemyMaucourt/following{/other_user}","gists_url":"https://api.github.com/users/RemyMaucourt/gists{/gist_id}","starred_url":"https://api.github.com/users/RemyMaucourt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemyMaucourt/subscriptions","organizations_url":"https://api.github.com/users/RemyMaucourt/orgs","repos_url":"https://api.github.com/users/RemyMaucourt/repos","events_url":"https://api.github.com/users/RemyMaucourt/events{/privacy}","received_events_url":"https://api.github.com/users/RemyMaucourt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-06T14:02:10Z","updated_at":"2017-11-06T16:28:50Z","closed_at":null,"author_association":"NONE","body":"I started with state_machines, and wrote a few specs about my workflow with state_machines-rspec.\r\n\r\nWhen I decided later to switch to state_machines-activerecord, my transition specs failed, and I can't see why.  That kind of spec:\r\n\r\n```\r\nit { is_expected.to transition_from :idle, to_state: :received, on_event: :receive }\r\n```\r\n\r\ngenerates that kind of error:\r\n\r\n```\r\nFailure/Error:\r\n    is_expected.to transition_from :idle, to_state: :received,\r\n                                             on_event: :receive\r\n\r\nExpected to be able to transition state from: idle to: received, on_event: receive\r\n```\r\n\r\nwhich is weird, considering I have this code in my model:\r\n\r\n```\r\nevent :receive do\r\n    transition idle: :received\r\nend\r\n```\r\n\r\nIs there something I should know about the config of the rspec gem?\r\n\r\n(I'm building a Rails 5.1 app)"},"comment":{"url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/comments/342203747","html_url":"https://github.com/state-machines/state_machines-activerecord/issues/64#issuecomment-342203747","issue_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/64","id":342203747,"user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars3.githubusercontent.com/u/47848?v=4","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"created_at":"2017-11-06T16:28:50Z","updated_at":"2017-11-06T16:28:50Z","author_association":"CONTRIBUTOR","body":"I'm not an user of RSpec so I recommend you to open this issue in the RSpec adapter since they would be more likely to work on it."}}
{"actor":{"display_login":"rafaelfranca"}}