Fix #5312: StatementInvalid Error When Querying the media_assets Attribute of Uploads

This commit is contained in:
evazion
2022-10-25 14:15:47 -05:00
parent c96d60a840
commit 6413b9abcd
5 changed files with 71 additions and 8 deletions

View File

@@ -57,6 +57,8 @@ class UploadsControllerTest < ActionDispatch::IntegrationTest
should respond_to_search({}).with { [@upload] }
should respond_to_search(source: "http://example.com/foobar").with { @upload }
should respond_to_search(status: "completed").with { @upload }
should respond_to_search(media_assets: { file_size: 1_000_000 }).with { @upload }
should respond_to_search(media_assets: { md5: "blah" }).with { }
end
end