I am following the guide here verbatim but when I run my system tests, the file I am trying to upload does not seem to attach to my fixture. I believe I have everything set up correctly as I do see the uploaded file sitting in the temporary directory (tmp/storage_fixtures) so for whatever reason it's not attaching itself to the model. Here are my files:
towns.yml
toronto:
id: 1
name: Toronto
blobs.yml
toronto_map_image_blob: <%= ActiveStorage::FixtureSet.blob filename: "toronto_map.png", service_name: "test_fixtures" %>
attachments.yml
toronto_map_image:
name: map_image
record: toronto (Town)
blob: toronto_map_image_blob
config/storage.yml
test_fixtures:
service: Disk
root: <%= Rails.root.join("tmp/storage_fixtures") %>
town.rb
class Town < ApplicationRecord
has_one_attached :map_image
end