Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tmp_create_users(reset = false)
- if reset
- Subscription.destroy_all
- User.where.not(email: 'heroku@youneedabudget.com').destroy_all
- end
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'monthly_10@benevolentcode.com'
- u.coupon = Coupon.lifetime_discount
- FactoryGirl.create :subscription, :monthly, user: u, id: SecureRandom.uuid, name_on_card: 'Monthly with Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'monthly_no_10@benevolentcode.com'
- FactoryGirl.create :subscription, :monthly, user: u, id: SecureRandom.uuid, name_on_card: 'Monthly no Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'pending_monthly_10@benevolentcode.com'
- u.coupon = Coupon.lifetime_discount
- FactoryGirl.create :subscription, :annual, :pending_monthly, user: u, id: SecureRandom.uuid, unit_amount_in_cents: 4500, name_on_card: '(Annual) Pending Monthly with Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'pending_monthly_no_10@benevolentcode.com'
- FactoryGirl.create :subscription, :annual, :pending_monthly, user: u, id: SecureRandom.uuid, name_on_card: '(Annual) Pending Monthly no Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'annual_10@benevolentcode.com'
- u.coupon = Coupon.lifetime_discount
- FactoryGirl.create :subscription, :annual, user: u, id: SecureRandom.uuid, unit_amount_in_cents: 4500, name_on_card: 'Annual with Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'annual_no_10@benevolentcode.com'
- FactoryGirl.create :subscription, :annual, user: u, id: SecureRandom.uuid, name_on_card: 'Annual no Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'pending_annual_10@benevolentcode.com'
- u.coupon = Coupon.lifetime_discount
- FactoryGirl.create :subscription, :monthly, pending_plan_code: 'annual', pending_unit_amount_in_cents: 4500, pending_currency: 'USD', user: u, id: SecureRandom.uuid, name_on_card: '(Monthly) Pending Annual with Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'pending_annual_no_10@benevolentcode.com'
- FactoryGirl.create :subscription, :monthly, :pending_annual, user: u, id: SecureRandom.uuid, name_on_card: '(Monthly) Pending Annual no Discount'
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'no_sub_10@benevolentcode.com'
- u.coupon = Coupon.lifetime_discount
- u = User.create! confirmed_at: Time.current, password: 'geo54715', email: 'no_sub_no_10@benevolentcode.com'
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement