Fixed wrong datetime-settings in fixtures.

This commit is contained in:
Benjamin Meichsner 2009-02-06 19:30:35 +01:00
parent 0a87294ed4
commit 85eb27079f
4 changed files with 10 additions and 3 deletions

View file

@ -19,24 +19,28 @@ banana1:
price: 1.45 price: 1.45
tax: 7.0 tax: 7.0
unit_quantity: 18 unit_quantity: 18
created_at: <%= Time.now.to_s(:db) %>
banana2: banana2:
article: banana article: banana
price: 1.35 price: 1.35
tax: 7.0 tax: 7.0
unit_quantity: 18 unit_quantity: 18
created_at: <%= Time.now.to_s(:db) %>
kiwi1: kiwi1:
article: kiwi article: kiwi
price: 1.11 price: 1.11
tax: 7.0 tax: 7.0
unit_quantity: 10 unit_quantity: 10
created_at: <%= Time.now.to_s(:db) %>
potatoe1: potatoe1:
article: potatoe article: potatoe
price: 1.33 price: 1.33
tax: 7.0 tax: 7.0
unit_quantity: 25 unit_quantity: 25
created_at: <%= Time.now.to_s(:db) %>
applejuice1: applejuice1:
article: applejuice article: applejuice
@ -44,3 +48,4 @@ applejuice1:
tax: 7.0 tax: 7.0
unit_quantity: 1 unit_quantity: 1
deposit: 0.15 deposit: 0.15
created_at: <%= Time.now.to_s(:db) %>

View file

@ -17,10 +17,10 @@ bananas1:
amount: 0.00 amount: 0.00
note: "Deposit for 3 people: 15,-€" note: "Deposit for 3 people: 15,-€"
user: admin user: admin
created_on: <%= 2.weeks.ago.strftime("%d.%m.%Y") %> created_on: <%= 2.weeks.ago.to_s(:db) %>
bananas2: bananas2:
ordergroup: bananas ordergroup: bananas
amount: 100.00 amount: 100.00
note: Paying in from <%= 1.weeks.ago.strftime("%d.%m.%Y") %> 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) %>

View file

@ -40,7 +40,7 @@ bananas:
type: Ordergroup type: Ordergroup
name: Banangroup name: Banangroup
account_balance: 100.00 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_person: Tim
contact_phone: 030 123132456 contact_phone: 030 123132456
contact_address: Waldermarstrasse 43, 10988 Berlin contact_address: Waldermarstrasse 43, 10988 Berlin

View file

@ -25,6 +25,7 @@ admin:
email: admin@foo.test email: admin@foo.test
password_hash: a3c77e64311ad37161e582b28737d1e420962538 password_hash: a3c77e64311ad37161e582b28737d1e420962538
password_salt: LNpP/lca password_salt: LNpP/lca
created_on: <%= 1.day.ago.to_s(:db) %>
test: test:
nick: test nick: test
first_name: Tim first_name: Tim
@ -32,3 +33,4 @@ test:
email: test@foo.test email: test@foo.test
password_hash: 5549cd54032a72435037893b02d95ebef13cdc57 password_hash: 5549cd54032a72435037893b02d95ebef13cdc57
password_salt: DxnbIF1h password_salt: DxnbIF1h
created_on: <%= Time.now.to_s(:db) %>