spec/support/transition_support.rb
# 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 transition_metadata(user, order = nil)
    {
      user_id: user.id,
      order_id: order ? order.id : nil
    }
  end
def transition_metadata ( user , order = nil ) { user_id : user . id , order_id : order ? order . id : nil } end
excludes :order which happens automatically when order is confirmed
excludes : order which happens automatically when order is confirmed
user
<not_specific>
order
<not_specific>