1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/test/fixtures/coupons.yml
Sylvain 728ae4310c improved testing of payment schedules + some fixes
TODO: fix the test
rails test test/integration/reservations/create_test.rb
Reservations::CreateTest#test_user_reserves_a_machine_and_renew_a_subscription_with_payment_schedule_and_coupon_and_wallet [test/integration/reservations/create_test.rb:841]
Minitest::Assertion: Expected: "stripe"
  Actual: nil
2020-12-30 18:43:33 +01:00

38 lines
850 B
YAML

# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: Christmas deals
code: XMAS10
percent_off: 10
valid_until: 2015-12-31 23:59:59
max_usages:
active: true
validity_per_user: once
two:
name: Summer discounts
code: SUNNYFABLAB
percent_off: 15
valid_until: <%= 1.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
max_usages: 10
active: true
validity_per_user: always
cash:
name: Cash Code
code: ZERG6H1R65H
amount_off: 10000
valid_until: <%= 1.year.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
max_usages: 1
active: true
validity_per_user: once
cash2:
name: Small Cash Code
code: GIME3EUR
amount_off: 300
valid_until: <%= 1.year.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
max_usages:
active: true
validity_per_user: once