tests: fix iqdb controller test (#3479).
This commit is contained in:
@@ -28,7 +28,7 @@ class IqdbQueriesControllerTest < ActionController::TestCase
|
||||
|
||||
should "render for a json response" do
|
||||
mock_iqdb_matches!(@posts[0].source, @posts)
|
||||
get :index, { url: @posts[0].source, format: "json" }, { user_id: @user.id }
|
||||
get :show, { url: @posts[0].source, format: "json" }, { user_id: @user.id }
|
||||
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user