Are there any guidelines, examples on how to test ActiveStorage (model, 
request specs) ? I'm a little bit lost with all these new AS methods:

ActiveStorage::Blob.create_after_upload!
create_before_direct_upload
fixture_file_upload

My use case is really trivial:

class Post < ApplicationRecord
  serialize :tag_ids, Array
  validates :title, :body, :tag_ids, presence: true


  has_one_attached :photo
end

*PostsController* is just the one generated with scaffold.

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/b6ecb572-4d99-497b-9a18-75fbf5d3958c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to