Sitelet https://github.com/aasm/aasm/pull/850
Skip to content

Add current state detail to minitest transition_from assertions - #850

Open
h-lame wants to merge 1 commit into
aasm:masterfrom
meetcleo:add-actual-state-to-transition_from-assertions
Open

h-lame wants to merge 1 commit into
aasm:masterfrom
meetcleo:add-actual-state-to-transition_from-assertions

Conversation

@h-lame

@h-lame h-lame commented Jul 30, 2024

Copy link
Copy Markdown

It's useful when reviewing a failure to know which state you did get by firing the transition, not just the one you expected, as this can help with tracing down the error in the state machine. This brings the minitest helper closer to the output from the rspec version which already includes the actual state not just the expected one.

It's useful when reviewing a failure to know which state you did get by firing
the transition, not just the one you expected, as this can help with tracing
down the error in the state machine. This brings the minitest helper closer to
the output from the rspec version which already includes the actual state not
just the expected one.
@h-lame

h-lame commented Jul 30, 2024

Copy link
Copy Markdown
Author

Failure here from codeclimate seems overzealous - but I'm willing to try resolving it if a maintainer thinks there's merit in doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant