From: Aidan Cornelius-Bell Date: Tue, 31 Dec 2024 21:37:23 +0000 (+1030) Subject: More realistic test fixtures X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=f659e877896cc86733bc89dd1a40fa481d61b776;p=arelpe.git More realistic test fixtures --- 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