]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
More realistic test fixtures
authorAidan Cornelius-Bell <[email protected]>
Tue, 31 Dec 2024 21:37:23 +0000 (08:07 +1030)
committerAidan Cornelius-Bell <[email protected]>
Tue, 31 Dec 2024 21:37:23 +0000 (08:07 +1030)
test/fixtures/pages.yml
test/fixtures/posts.yml

index 816db51a0ce55d0c7107870a2986c15fa0628d2b..4e8457eae4f679dbb99009683d73c8e40a214e0a 100644 (file)
@@ -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
index 62eac0d1b37eeb020bd6a10ae9914b205c7e456b..f2901fed8d5780ea9366081cafedc2b8634c90a7 100644 (file)
@@ -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