Guest User

Untitled

a guest
Aug 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. #spec/support/controller_helper.rb
  2.  
  3. module ControllerHelper
  4. def seed_categories
  5. TransactionCategory.find_or_create_by(name: 'Complete your profile', rate: 250, transaction_type: :automatic)
  6. TransactionCategory.find_or_create_by(name: 'Add @HonestDocs on your LINE app', rate: 50)
  7. TransactionCategory.find_or_create_by(name: 'Invite a friend', rate: 50, transaction_type: :automatic)
  8. TransactionCategory.find_or_create_by(name: 'Share an article on Facebook', rate: 20)
  9. TransactionCategory.find_or_create_by(name: 'Ask promo question', rate: -200, transaction_type: :automatic)
  10. TransactionCategory.find_or_create_by(name: 'Ask regular question', rate: -100, transaction_type: :automatic)
  11. TransactionCategory.find_or_create_by(name: 'Hospital booking', rate: -250, transaction_type: :automatic)
  12. TransactionCategory.find_or_create_by(name: 'Manual Hospital booking', rate: -250)
  13. TransactionCategory.find_or_create_by(name: 'Buy Products from our Health Shop', rate: 0)
  14. TransactionCategory.find_or_create_by(name: 'Top up Health Coins', rate: 0)
  15. TransactionCategory.find_or_create_by(name: 'Miscellaneous', rate: 0)
  16. TransactionCategory.find_or_create_by(name: 'Refund', rate: 0)
  17. TransactionCategory.find_or_create_by(name: 'Cash Withdrawal', rate: 0)
  18. TransactionCategory.find_or_create_by(name: 'New User Registration', rate: 150, transaction_type: :automatic)
  19. TransactionCategory.find_or_create_by(name: 'Write a hospital review', rate: 100, transaction_type: :automatic)
  20. end
  21. end
Add Comment
Please, Sign In to add comment