mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
[fixtures] make subscriptions dates dynamic
This commit is contained in:
parent
59153f4298
commit
745a89f18f
31
test/fixtures/subscriptions.yml
vendored
31
test/fixtures/subscriptions.yml
vendored
@ -1,31 +0,0 @@
|
|||||||
|
|
||||||
subscription_1:
|
|
||||||
id: 1
|
|
||||||
plan_id: 2
|
|
||||||
user_id: 3
|
|
||||||
stp_subscription_id: sub_8DGB4ErIc2asOv
|
|
||||||
created_at: 2016-04-05 08:35:51.784514000 Z
|
|
||||||
updated_at: 2016-04-05 08:35:51.784514000 Z
|
|
||||||
expired_at: 2016-06-05 08:35:51.000000000 Z
|
|
||||||
canceled_at: 2016-04-05 08:35:55.615387000 Z
|
|
||||||
|
|
||||||
subscription_2:
|
|
||||||
id: 2
|
|
||||||
plan_id: 3
|
|
||||||
user_id: 4
|
|
||||||
stp_subscription_id:
|
|
||||||
created_at: 2016-04-05 08:36:46.829879000 Z
|
|
||||||
updated_at: 2016-04-05 08:36:46.829879000 Z
|
|
||||||
expired_at: 2016-05-05 08:36:46.828332000 Z
|
|
||||||
canceled_at:
|
|
||||||
|
|
||||||
# subscription has expired (do not change dates)
|
|
||||||
subscription_3:
|
|
||||||
id: 3
|
|
||||||
plan_id: 1
|
|
||||||
user_id: 7
|
|
||||||
stp_subscription_id:
|
|
||||||
created_at: 2012-03-12 11:03:31.651441000 Z
|
|
||||||
updated_at: 2012-03-12 11:03:31.651441000 Z
|
|
||||||
expired_at: 2012-04-12 11:03:31.648274000 Z
|
|
||||||
canceled_at:
|
|
31
test/fixtures/subscriptions.yml.erb
vendored
Normal file
31
test/fixtures/subscriptions.yml.erb
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
subscription_1:
|
||||||
|
id: 1
|
||||||
|
plan_id: 2
|
||||||
|
user_id: 3
|
||||||
|
stp_subscription_id: sub_8DGB4ErIc2asOv
|
||||||
|
created_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
|
||||||
|
updated_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
|
||||||
|
expired_at: <%= (1.month.from_now - 10.days).utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
|
||||||
|
canceled_at: <%= (10.days.ago + 1.minute).utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
|
||||||
|
|
||||||
|
subscription_2:
|
||||||
|
id: 2
|
||||||
|
plan_id: 3
|
||||||
|
user_id: 4
|
||||||
|
stp_subscription_id:
|
||||||
|
created_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
|
||||||
|
updated_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
|
||||||
|
expired_at: <%= (1.month.from_now - 10.days).utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
|
||||||
|
canceled_at:
|
||||||
|
|
||||||
|
# subscription has expired (do not change dates)
|
||||||
|
subscription_3:
|
||||||
|
id: 3
|
||||||
|
plan_id: 1
|
||||||
|
user_id: 7
|
||||||
|
stp_subscription_id:
|
||||||
|
created_at: 2012-03-12 11:03:31.651441000 Z
|
||||||
|
updated_at: 2012-03-12 11:03:31.651441000 Z
|
||||||
|
expired_at: 2012-04-12 11:03:31.648274000 Z
|
||||||
|
canceled_at:
|
Loading…
Reference in New Issue
Block a user