We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125095c commit 1a0f85eCopy full SHA for 1a0f85e
activestorage/test/models/attachments_test.rb
@@ -27,7 +27,7 @@ class ActiveStorage::AttachmentsTest < ActiveSupport::TestCase
27
28
test "attach new blob from an UploadedFile" do
29
file = file_fixture "racecar.jpg"
30
- @user.avatar.attach Rack::Test::UploadedFile.new file
+ @user.avatar.attach Rack::Test::UploadedFile.new file.to_s
31
assert_equal "racecar.jpg", @user.avatar.filename.to_s
32
end
33
0 commit comments