From add0d8b5298c57e4aba41e7af7d70c18f4887cea Mon Sep 17 00:00:00 2001 From: Kosuke Tanabe Date: Sun, 19 Jan 2025 23:41:55 +0900 Subject: [PATCH] update fixture files --- spec/fixtures/checked_items.yml | 8 ++++---- spec/fixtures/checkouts.yml | 26 ++++++++++++------------ spec/fixtures/messages.yml | 8 ++++---- spec/fixtures/reserves.yml | 36 ++++++++++++++++----------------- spec/fixtures/users.yml | 2 +- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/spec/fixtures/checked_items.yml b/spec/fixtures/checked_items.yml index 217d03a727..3fef2dc9b0 100644 --- a/spec/fixtures/checked_items.yml +++ b/spec/fixtures/checked_items.yml @@ -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 # diff --git a/spec/fixtures/checkouts.yml b/spec/fixtures/checkouts.yml index e966969833..4baebda31b 100644 --- a/spec/fixtures/checkouts.yml +++ b/spec/fixtures/checkouts.yml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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 @@ -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 @@ -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: diff --git a/spec/fixtures/messages.yml b/spec/fixtures/messages.yml index 6a253bdbc7..435f8752dc 100644 --- a/spec/fixtures/messages.yml +++ b/spec/fixtures/messages.yml @@ -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: @@ -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: @@ -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: @@ -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 diff --git a/spec/fixtures/reserves.yml b/spec/fixtures/reserves.yml index 35954f541c..978774e0cb 100644 --- a/spec/fixtures/reserves.yml +++ b/spec/fixtures/reserves.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: @@ -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 @@ -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 @@ -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 @@ -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: @@ -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 @@ -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 diff --git a/spec/fixtures/users.yml b/spec/fixtures/users.yml index 6291eabe94..f8c6b6c0bc 100644 --- a/spec/fixtures/users.yml +++ b/spec/fixtures/users.yml @@ -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 #