Skip to content

Commit

Permalink
update fixture files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jan 19, 2025
1 parent e3942fa commit add0d8b
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
8 changes: 4 additions & 4 deletions spec/fixtures/checked_items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ checked_item_00001:
id: 1
item_id: 10
basket_id: 1
due_date: <%= 1.week.from_now.to_s(:db) %>
due_date: <%= 1.week.from_now.to_fs(:db) %>
checked_item_00002:
id: 2
item_id: 6
basket_id: 2
due_date: <%= 1.week.from_now.to_s(:db) %>
due_date: <%= 1.week.from_now.to_fs(:db) %>
checked_item_00003:
id: 3
item_id: 6
basket_id: 9
due_date: <%= 1.week.from_now.to_s(:db) %>
due_date: <%= 1.week.from_now.to_fs(:db) %>
checked_item_00004:
id: 4
item_id: 12
basket_id: 8
due_date: <%= 1.week.from_now.to_s(:db) %>
due_date: <%= 1.week.from_now.to_fs(:db) %>

# == Schema Information
#
Expand Down
26 changes: 13 additions & 13 deletions spec/fixtures/checkouts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ checkout_00001:
id: 1
librarian_id: 1
checkout_renewal_count: 0
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:19:02.285850 +09:00
basket_id: 1
checkout_00002:
Expand All @@ -18,7 +18,7 @@ checkout_00002:
id: 2
librarian_id: 1
checkout_renewal_count: 0
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:34:07.363023 +09:00
basket_id: 1
checkout_00003:
Expand All @@ -29,7 +29,7 @@ checkout_00003:
id: 3
librarian_id: 1
checkout_renewal_count: 0
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:03.210081 +09:00
basket_id: 2
checkout_00004:
Expand All @@ -40,7 +40,7 @@ checkout_00004:
id: 4
librarian_id: 1
checkout_renewal_count: 0
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:04.210081 +09:00
basket_id: 3
checkout_00005:
Expand All @@ -51,7 +51,7 @@ checkout_00005:
id: 5
librarian_id: 1
checkout_renewal_count: 0
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:05.210081 +09:00
basket_id: 4
checkout_00006:
Expand All @@ -72,7 +72,7 @@ checkout_00007:
id: 7
librarian_id: 1
checkout_renewal_count: 0
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:07.210081 +09:00
basket_id: 5
checkout_00008:
Expand All @@ -83,7 +83,7 @@ checkout_00008:
id: 8
librarian_id: 1
checkout_renewal_count: 0
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:08.210081 +09:00
basket_id: 6
checkout_00009:
Expand All @@ -94,7 +94,7 @@ checkout_00009:
id: 9
librarian_id: 1
checkout_renewal_count: 1
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:09.210081 +09:00
basket_id: 7
checkout_00010:
Expand All @@ -105,7 +105,7 @@ checkout_00010:
id: 10
librarian_id: 1
checkout_renewal_count: 1
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
due_date: <%= 2.day.from_now.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:10.210081 +09:00
basket_id: 7
checkout_00011:
Expand All @@ -116,7 +116,7 @@ checkout_00011:
id: 11
librarian_id: 1
checkout_renewal_count: 1
due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
due_date: <%= 180.days.ago.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:11.210081 +09:00
basket_id: 7
checkout_00012:
Expand All @@ -127,7 +127,7 @@ checkout_00012:
id: 12
librarian_id: 1
checkout_renewal_count: 1
due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
due_date: <%= 180.days.ago.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:12.210081 +09:00
basket_id: 8
checkin_id: 5
Expand All @@ -139,7 +139,7 @@ checkout_00013:
id: 13
librarian_id: 1
checkout_renewal_count: 1
due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
due_date: <%= 180.days.ago.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:13.210081 +09:00
basket_id: 8
checkin_id: 4
Expand All @@ -151,7 +151,7 @@ checkout_00014:
id: 14
librarian_id: 1
checkout_renewal_count: 1
due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
due_date: <%= 180.days.ago.beginning_of_day.to_fs(:db) %>
created_at: 2007-09-08 01:39:14.210081 +09:00
basket_id: 9
checkin_id:
Expand Down
8 changes: 4 additions & 4 deletions spec/fixtures/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ user1_to_user2_1:
subject: 'First Message'
body: 'Abby, you get the first message'
created_at: 2007-07-04 12:10:47.0
read_at: <%= 3.days.ago.to_s :db %>
read_at: <%= 3.days.ago.to_fs(:db) %>
lft: 1
rgt: 2
user2_to_user1_1:
Expand All @@ -14,7 +14,7 @@ user2_to_user1_1:
receiver_id: 3
subject: 'RE: First Message'
body: 'Thanks Dad! You are the coolest!'
created_at: <%= 2.days.ago.to_s :db %>
created_at: <%= 2.days.ago.to_fs(:db) %>
lft: 3
rgt: 4
user1_to_librarian_2:
Expand All @@ -23,7 +23,7 @@ user1_to_librarian_2:
receiver_id: 4
subject: 'Second Message'
body: 'Catie, you get the 2nd message'
created_at: <%= 1.days.ago.to_s :db %>
created_at: <%= 1.days.ago.to_fs(:db) %>
lft: 5
rgt: 6
librarian2_to_user2:
Expand All @@ -32,7 +32,7 @@ librarian2_to_user2:
receiver_id: 5
subject: 'Dad!'
body: 'He is sucha dork.'
created_at: <%= 2.days.ago.to_s :db %>
created_at: <%= 2.days.ago.to_fs(:db) %>
lft: 7
rgt: 8

Expand Down
36 changes: 18 additions & 18 deletions spec/fixtures/reserves.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ reserve_00001:
request_status_type_id: 4
id: 1
created_at: 2007-09-01 14:14:52.356803 +09:00
expired_at: <%= 1.week.from_now.to_s(:db) %>
expired_at: <%= 1.week.from_now.to_fs(:db) %>
lock_version: 0
reserve_00002:
updated_at: 2007-09-01 14:20:05.530854 +09:00
Expand All @@ -15,7 +15,7 @@ reserve_00002:
request_status_type_id: 4
id: 2
created_at: 2007-09-01 14:20:05.530854 +09:00
expired_at: <%= 1.week.from_now.to_s(:db) %>
expired_at: <%= 1.week.from_now.to_fs(:db) %>
lock_version: 0
reserve_00003:
updated_at: 2007-09-02 17:46:52.791614 +09:00
Expand All @@ -24,7 +24,7 @@ reserve_00003:
request_status_type_id: 4
id: 3
created_at: 2007-09-02 17:46:52.791614 +09:00
expired_at: <%= 1.week.from_now.to_s(:db) %>
expired_at: <%= 1.week.from_now.to_fs(:db) %>
lock_version: 0
reserve_00004:
updated_at: 2007-09-02 18:37:25.576087 +09:00
Expand All @@ -33,7 +33,7 @@ reserve_00004:
request_status_type_id: 4
id: 4
created_at: 2007-09-02 18:37:25.576087 +09:00
expired_at: <%= 1.week.from_now.to_s(:db) %>
expired_at: <%= 1.week.from_now.to_fs(:db) %>
lock_version: 0
reserve_00005:
updated_at: 2007-09-02 19:16:55.714812 +09:00
Expand All @@ -42,7 +42,7 @@ reserve_00005:
request_status_type_id: 4
id: 5
created_at: 2007-09-02 19:16:55.714812 +09:00
expired_at: <%= 1.week.from_now.to_s(:db) %>
expired_at: <%= 1.week.from_now.to_fs(:db) %>
lock_version: 0
reserve_00006:
updated_at: 2007-09-02 19:20:06.530854 +09:00
Expand All @@ -51,7 +51,7 @@ reserve_00006:
request_status_type_id: 4
id: 6
created_at: 2007-09-02 19:20:06.530854 +09:00
expired_at: <%= 1.week.from_now.to_s(:db) %>
expired_at: <%= 1.week.from_now.to_fs(:db) %>
lock_version: 0
reserve_00007:
updated_at: 2007-09-02 19:20:07.530854 +09:00
Expand All @@ -60,7 +60,7 @@ reserve_00007:
request_status_type_id: 4
id: 7
created_at: 2007-09-02 19:20:07.530854 +09:00
expired_at: <%= 1.week.from_now.to_s(:db) %>
expired_at: <%= 1.week.from_now.to_fs(:db) %>
lock_version: 0
reserve_00008:
updated_at: 2007-09-02 19:46:53.791614 +09:00
Expand All @@ -69,7 +69,7 @@ reserve_00008:
request_status_type_id: 3
id: 8
created_at: 2007-09-02 19:46:53.791614 +09:00
expired_at: <%= 1.week.ago.to_s(:db) %>
expired_at: <%= 1.week.ago.to_fs(:db) %>
lock_version: 0
reserve_00009:
updated_at: 2007-09-02 19:46:54.791614 +09:00
Expand All @@ -78,7 +78,7 @@ reserve_00009:
request_status_type_id: 3
id: 9
created_at: 2007-09-02 19:46:54.791614 +09:00
expired_at: <%= 1.day.ago.to_s(:db) %>
expired_at: <%= 1.day.ago.to_fs(:db) %>
lock_version: 0
reserve_00010:
updated_at: 2007-09-02 19:46:55.791614 +09:00
Expand All @@ -87,8 +87,8 @@ reserve_00010:
request_status_type_id: 3
id: 10
created_at: 2007-09-02 19:46:55.791614 +09:00
expired_at: <%= 1.hour.ago.to_s(:db) %>
checked_out_at: <%= 1.week.ago.to_s(:db) %>
expired_at: <%= 1.hour.ago.to_fs(:db) %>
checked_out_at: <%= 1.week.ago.to_fs(:db) %>
item_id: 25
lock_version: 0
reserve_00011:
Expand All @@ -98,7 +98,7 @@ reserve_00011:
request_status_type_id: 3
id: 11
created_at: 2007-09-03 14:20:05.530854 +09:00
expired_at: <%= 1.day.ago.to_s(:db) %>
expired_at: <%= 1.day.ago.to_fs(:db) %>
lock_version: 0
reserve_00012:
updated_at: 2007-09-03 14:20:06.530854 +09:00
Expand All @@ -107,7 +107,7 @@ reserve_00012:
request_status_type_id: 4
id: 12
created_at: 2007-09-03 14:20:06.530854 +09:00
expired_at: <%= 1.day.ago.to_s(:db) %>
expired_at: <%= 1.day.ago.to_fs(:db) %>
lock_version: 0
reserve_00013:
updated_at: 2007-09-03 14:20:07.530854 +09:00
Expand All @@ -116,7 +116,7 @@ reserve_00013:
request_status_type_id: 3
id: 13
created_at: 2007-09-03 14:20:07.530854 +09:00
expired_at: <%= 1.day.ago.to_s(:db) %>
expired_at: <%= 1.day.ago.to_fs(:db) %>
lock_version: 0
reserve_00014:
updated_at: 2007-09-03 14:20:08.530854 +09:00
Expand All @@ -125,8 +125,8 @@ reserve_00014:
request_status_type_id: 3
id: 14
created_at: 2007-09-03 14:20:08.530854 +09:00
retained_at: <%= 1.hour.from_now.to_s(:db) %>
expired_at: <%= 1.day.from_now.to_s(:db) %>
retained_at: <%= 1.hour.from_now.to_fs(:db) %>
expired_at: <%= 1.day.from_now.to_fs(:db) %>
item_id: 21
lock_version: 0
reserve_00015:
Expand All @@ -136,7 +136,7 @@ reserve_00015:
request_status_type_id: 3
id: 15
created_at: 2007-09-03 14:20:09.530854 +09:00
expired_at: <%= 1.day.from_now.to_s(:db) %>
expired_at: <%= 1.day.from_now.to_fs(:db) %>
lock_version: 0
reserve_00016:
updated_at: 2007-09-03 14:20:10.530854 +09:00
Expand All @@ -145,7 +145,7 @@ reserve_00016:
request_status_type_id: 3
id: 16
created_at: 2007-09-03 14:20:10.530854 +09:00
expired_at: <%= 1.day.from_now.to_s(:db) %>
expired_at: <%= 1.day.from_now.to_fs(:db) %>
lock_version: 0

# == Schema Information
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ user4:
username: user4
email: user4@kamata.lib.teu.ac.jp
created_at: 2007-11-19 16:58:34.637413 +09:00
locked_at: <%= 1.minute.ago.to_s(:db) %>
locked_at: <%= 1.minute.ago.to_fs(:db) %>

# == Schema Information
#
Expand Down

0 comments on commit add0d8b

Please sign in to comment.