From 364d632928ba2a1446251ec13497633400543173 Mon Sep 17 00:00:00 2001 From: saneery Date: Wed, 31 Jul 2019 13:38:13 +0300 Subject: [PATCH] Update broken tests --- .../api/v1/decompiled_smart_contract_controller_test.exs | 5 ----- .../api/v1/verified_smart_contract_controller_test.exs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs index b39d6688e0..d6b52c8490 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs @@ -1,7 +1,6 @@ defmodule BlockScoutWeb.API.V1.DecompiledControllerTest do use BlockScoutWeb.ConnCase - alias BlockScoutWeb.ApiRouter.Helpers alias Explorer.Repo alias Explorer.Chain.{Address, DecompiledSmartContract} @@ -115,8 +114,4 @@ defmodule BlockScoutWeb.API.V1.DecompiledControllerTest do assert request.status == 403 end end - - def api_v1_decompiled_smart_contract_path(conn, action) do - "/api" <> Helpers.api_v1_decompiled_smart_contract_path(conn, action) - end end diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/v1/verified_smart_contract_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/v1/verified_smart_contract_controller_test.exs index d11844e933..2e51f42467 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/api/v1/verified_smart_contract_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/api/v1/verified_smart_contract_controller_test.exs @@ -1,7 +1,6 @@ defmodule BlockScoutWeb.API.V1.VerifiedControllerTest do use BlockScoutWeb.ConnCase - alias BlockScoutWeb.ApiRouter.Helpers alias Explorer.Factory # alias Explorer.Chain.DecompiledSmartContract @@ -70,8 +69,4 @@ defmodule BlockScoutWeb.API.V1.VerifiedControllerTest do assert response.status == 201 assert Jason.decode!(response.resp_body) == %{"status" => "success"} end - - def api_v1_verified_smart_contract_path(conn, action) do - "/api" <> Helpers.api_v1_verified_smart_contract_path(conn, action) - end end