You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started with state_machines, and wrote a few specs about my workflow with state_machines-rspec.
When I decided later to switch to state_machines-activerecord, my transition specs failed, and I can't see why. That kind of spec:
it { is_expected.to transition_from :idle, to_state: :received, on_event: :receive }
generates that kind of error:
Failure/Error:
is_expected.to transition_from :idle, to_state: :received,
on_event: :receive
Expected to be able to transition state from: idle to: received, on_event: receive
which is weird, considering I have this code in my model:
event :receive do
transition idle: :received
end
Is there something I should know about the config of the rspec gem?
(I'm building a Rails 5.1 app)
The text was updated successfully, but these errors were encountered:
RemyMaucourt
changed the title
specs fails when switching to state_machines-activerecord
Transition specs fails when switching to state_machines-activerecord
Nov 6, 2017
I started with state_machines, and wrote a few specs about my workflow with state_machines-rspec.
When I decided later to switch to state_machines-activerecord, my transition specs failed, and I can't see why. That kind of spec:
generates that kind of error:
which is weird, considering I have this code in my model:
Is there something I should know about the config of the rspec gem?
(I'm building a Rails 5.1 app)
The text was updated successfully, but these errors were encountered: