# test/fixtures/posts.yml
my_first_post:
title: My First Post
my_second_post:
title: My Second Post
# test/fixtures/comments.yml
first_comment:
post: my_first_post
session: <%= SecureRandom.hex %>
created_at: <%= 1.day.ago %>
second_comment:
post: my_first_post
session: <%= SecureRandom.hex %>
created_at: <%= 5.minutes.ago %>
first_comment_on_second_post:
post: my_second_post
session: <%= SecureRandom.hex %>
created_at: <%= 1.day.ago %>
# test/fixtures/action_text/rich_texts.yml
lorem_ipsum_first_post:
record: my_first_post (Post)
name: content
body: |
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
</p>
lorem_ipsum_second_post:
record: my_second_post (Post)
name: content
body: |
<p>
Adipiscing elit pellentesque habitant morbi tristique
</p>
first_comment_on_first_post:
record: first_comment (Comment)
name: content
body: <p>This is the first comment</p>
second_comment_on_first_post:
record: second_comment (Comment)
name: content
body: <p>This is the second comment</p>
first_comment_on_second_post:
record: first_comment_on_second_post (Comment)
name: content
body: <p>This is the first comment</p>
# test/fixtures/active_storage/attachments.yml
poster_attachment:
name: poster
record: my_first_post (Post)
blob: poster_blob
poster_attachment_second_post:
name: poster
record: my_second_post (Post)
blob: poster_blob_second_post
# test/fixtures/active_storage/variant_records.yml
empty file - this will erase variant records = important so they get recalculated