From f659e877896cc86733bc89dd1a40fa481d61b776 Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Wed, 1 Jan 2025 08:07:23 +1030 Subject: [PATCH] More realistic test fixtures --- test/fixtures/pages.yml | 8 ++++---- test/fixtures/posts.yml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/fixtures/pages.yml b/test/fixtures/pages.yml index 816db51..4e8457e 100644 --- a/test/fixtures/pages.yml +++ b/test/fixtures/pages.yml @@ -1,13 +1,13 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html one: - title: MyString - slug: MyString + title: Page One + slug: page-one-<%= SecureRandom.hex(4) %> content: MyText visibility: 1 two: - title: MyString - slug: MyString + title: Page Two + slug: page-two-<%= SecureRandom.hex(4) %> content: MyText visibility: 1 diff --git a/test/fixtures/posts.yml b/test/fixtures/posts.yml index 62eac0d..f2901fe 100644 --- a/test/fixtures/posts.yml +++ b/test/fixtures/posts.yml @@ -1,21 +1,21 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html one: - post_type: MyString - title: MyString - slug: MyString + post_type: dispatch + title: Post One + slug: post-one-<%= SecureRandom.hex(4) %> published_at: 2024-09-14 17:08:02 excerpt: MyText tags: MyText content: MyText - url: MyString + url: https://example.com/1 two: - post_type: MyString - title: MyString - slug: MyString + post_type: bookmark + title: Post Two + slug: post-two-<%= SecureRandom.hex(4) %> published_at: 2024-09-14 17:08:02 excerpt: MyText tags: MyText content: MyText - url: MyString + url: https://example.com/2 -- 2.39.5