Skip to content

Commit

Permalink
Test passing kwargs to attachment builder methods
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Jun 14, 2021
1 parent 1380e01 commit 0482350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/shrine_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
it "returns an instance of Attachment" do
uploader = Class.new(Shrine)

assert_instance_of uploader::Attachment, uploader::Attachment(:file)
assert_instance_of uploader::Attachment, uploader.attachment(:file)
assert_instance_of uploader::Attachment, uploader[:file]
assert_instance_of uploader::Attachment, uploader::Attachment(:file, cache: :store)
assert_instance_of uploader::Attachment, uploader.attachment(:file, cache: :store)
assert_instance_of uploader::Attachment, uploader[:file, cache: :store]
end
end

Expand Down

0 comments on commit 0482350

Please sign in to comment.