From 50356c27284f591341d1cd5ea5c37632c4e17839 Mon Sep 17 00:00:00 2001 From: Vladislav Sokov Date: Tue, 9 Jul 2024 15:07:26 +0300 Subject: [PATCH] fixup! fix tests --- .../actual_db_schema/phantom_migrations_controller_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/controllers/actual_db_schema/phantom_migrations_controller_test.rb b/test/controllers/actual_db_schema/phantom_migrations_controller_test.rb index e9ea019..c33840a 100644 --- a/test/controllers/actual_db_schema/phantom_migrations_controller_test.rb +++ b/test/controllers/actual_db_schema/phantom_migrations_controller_test.rb @@ -74,6 +74,13 @@ def active_record_setup end end + test "GET #index when all migrations is down returns a not found text" do + @utils.run_migrations + get :index + assert_response :success + assert_select "p", text: "No phantom migrations found." + end + test "GET #show returns a successful response" do get :show, params: { id: "20130906111511", database: "tmp/primary.sqlite3" } assert_response :success