Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. message = FactoryGirl.create(:message_delayed_action)
  2. message_properties = [
  3. {
  4. "name"=>"Some Message",
  5. "action_id"=>SuccessPlan::Action.first,
  6. "success_plan_id"=>SuccessPlan::Action.first.success_plan.id,
  7. "success_plan_name"=>SuccessPlan::Action.first.success_plan.name.to_s
  8. }
  9. ]
  10.  
  11. inapp = FactoryGirl.build(
  12. :message_inapp, message_id: message.id,
  13. account_user: "#{Account.first.id}#{Account.first.users.id}",
  14. account_id: Account.first.id,
  15. user_id: Account.first.users.id
  16. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement