{"action":"closed","issue":{"url":"https://api.github.com/repos/aasm/aasm/issues/383","repository_url":"https://api.github.com/repos/aasm/aasm","labels_url":"https://api.github.com/repos/aasm/aasm/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/aasm/aasm/issues/383/comments","events_url":"https://api.github.com/repos/aasm/aasm/issues/383/events","html_url":"https://github.com/aasm/aasm/issues/383","id":165557633,"number":383,"title":"Failures array in transition not being reset.","user":{"login":"jmcnevin","id":12859,"avatar_url":"https://avatars.githubusercontent.com/u/12859?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcnevin","html_url":"https://github.com/jmcnevin","followers_url":"https://api.github.com/users/jmcnevin/followers","following_url":"https://api.github.com/users/jmcnevin/following{/other_user}","gists_url":"https://api.github.com/users/jmcnevin/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcnevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcnevin/subscriptions","organizations_url":"https://api.github.com/users/jmcnevin/orgs","repos_url":"https://api.github.com/users/jmcnevin/repos","events_url":"https://api.github.com/users/jmcnevin/events{/privacy}","received_events_url":"https://api.github.com/users/jmcnevin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T13:06:29Z","updated_at":"2016-07-14T16:56:21Z","closed_at":"2016-07-14T16:56:20Z","body":"I'm wondering if anyone else has run into this issue with AASM 4.11 and Rspec.  I'm not sure if it relates to using `let` to define variables in specs.\r\n\r\nAs my specs run, I start to see failures in state transitions that worked in AASM 4.7, and the list of failures seems to compound with each spec run.  Example:\r\n\r\n```\r\nEvent 'close' cannot transition from 'available'. Failed callback(s): [:ready_to_close?, :ready_to_close?].\r\nEvent 'close' cannot transition from 'available'. Failed callback(s): [:ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?].\r\nEvent 'close' cannot transition from 'available'. Failed callback(s): [:ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?].\r\nEvent 'close' cannot transition from 'available'. Failed callback(s): [:ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?, :ready_to_close?].\r\n```\r\n\r\nI have a feeling this is related to storing the failures in an instance variable on the transition object, and somehow that array of failures isn't being cleared properly between transition attempts.  Is there a way I should be configuring my test suite to prevent this?\r\n"}}
{"actor":{"display_login":"jmcnevin"}}