Fixed wrong datetime-settings in fixtures.
This commit is contained in:
parent
0a87294ed4
commit
85eb27079f
4 changed files with 10 additions and 3 deletions
5
test/fixtures/article_prices.yml
vendored
5
test/fixtures/article_prices.yml
vendored
|
@ -19,24 +19,28 @@ banana1:
|
|||
price: 1.45
|
||||
tax: 7.0
|
||||
unit_quantity: 18
|
||||
created_at: <%= Time.now.to_s(:db) %>
|
||||
|
||||
banana2:
|
||||
article: banana
|
||||
price: 1.35
|
||||
tax: 7.0
|
||||
unit_quantity: 18
|
||||
created_at: <%= Time.now.to_s(:db) %>
|
||||
|
||||
kiwi1:
|
||||
article: kiwi
|
||||
price: 1.11
|
||||
tax: 7.0
|
||||
unit_quantity: 10
|
||||
created_at: <%= Time.now.to_s(:db) %>
|
||||
|
||||
potatoe1:
|
||||
article: potatoe
|
||||
price: 1.33
|
||||
tax: 7.0
|
||||
unit_quantity: 25
|
||||
created_at: <%= Time.now.to_s(:db) %>
|
||||
|
||||
applejuice1:
|
||||
article: applejuice
|
||||
|
@ -44,3 +48,4 @@ applejuice1:
|
|||
tax: 7.0
|
||||
unit_quantity: 1
|
||||
deposit: 0.15
|
||||
created_at: <%= Time.now.to_s(:db) %>
|
||||
|
|
4
test/fixtures/financial_transactions.yml
vendored
4
test/fixtures/financial_transactions.yml
vendored
|
@ -17,10 +17,10 @@ bananas1:
|
|||
amount: 0.00
|
||||
note: "Deposit for 3 people: 15,-€"
|
||||
user: admin
|
||||
created_on: <%= 2.weeks.ago.strftime("%d.%m.%Y") %>
|
||||
created_on: <%= 2.weeks.ago.to_s(:db) %>
|
||||
|
||||
bananas2:
|
||||
ordergroup: bananas
|
||||
amount: 100.00
|
||||
note: Paying in from <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
|
||||
created_on: <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
|
||||
created_on: <%= 1.weeks.ago.to_s(:db) %>
|
||||
|
|
2
test/fixtures/groups.yml
vendored
2
test/fixtures/groups.yml
vendored
|
@ -40,7 +40,7 @@ bananas:
|
|||
type: Ordergroup
|
||||
name: Banangroup
|
||||
account_balance: 100.00
|
||||
account_updated: <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
|
||||
account_updated: <%= 1.weeks.ago.to_s(:db) %>
|
||||
contact_person: Tim
|
||||
contact_phone: 030 123132456
|
||||
contact_address: Waldermarstrasse 43, 10988 Berlin
|
||||
|
|
2
test/fixtures/users.yml
vendored
2
test/fixtures/users.yml
vendored
|
@ -25,6 +25,7 @@ admin:
|
|||
email: admin@foo.test
|
||||
password_hash: a3c77e64311ad37161e582b28737d1e420962538
|
||||
password_salt: LNpP/lca
|
||||
created_on: <%= 1.day.ago.to_s(:db) %>
|
||||
test:
|
||||
nick: test
|
||||
first_name: Tim
|
||||
|
@ -32,3 +33,4 @@ test:
|
|||
email: test@foo.test
|
||||
password_hash: 5549cd54032a72435037893b02d95ebef13cdc57
|
||||
password_salt: DxnbIF1h
|
||||
created_on: <%= Time.now.to_s(:db) %>
|
||||
|
|
Loading…
Reference in a new issue