spec/support/transition_support.rb
def move_item_through_all_states(item, order, user)
    item_events.each do |event|
      item.trigger!(event, transition_metadata(user, order))
    end
  end
# excludes :order which happens automatically when order is confirmed
excludes :order which happens automatically when order is confirmed
excludes : order which happens automatically when order is confirmed
def move_item_through_all_states(item, order, user)
    item_events.each do |event|
      item.trigger!(event, transition_metadata(user, order))
    end
  end
def move_item_through_all_states ( item , order , user ) item_events . each do | event | item . trigger! ( event , transition_metadata ( user , order ) ) end end
excludes :order which happens automatically when order is confirmed
excludes : order which happens automatically when order is confirmed
item
order
user