module Minitest::Assertions
def _transitions_from?(object, from_state, args, options)
def _transitions_from?(object, from_state, args, options) state_machine_name = options[:on] object.aasm(state_machine_name).current_state = from_state.to_sym object.send(options[:on_event], *args) && options[:to].to_sym == object.aasm(state_machine_name).current_state end