From dce183502837a4b199021686e297d01e8e5924b7 Mon Sep 17 00:00:00 2001 From: Du Peng Date: Mon, 23 May 2022 16:15:49 +0200 Subject: [PATCH] fix create plan test --- test/integration/plans/create_plan_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/plans/create_plan_test.rb b/test/integration/plans/create_plan_test.rb index 19bacff99..2f538f827 100644 --- a/test/integration/plans/create_plan_test.rb +++ b/test/integration/plans/create_plan_test.rb @@ -41,7 +41,7 @@ class CreatePlanTest < ActionDispatch::IntegrationTest # Check the created plan plan = json_response(response.body) - assert_equal Plan.last.id, plan[:id] + assert_equal Plan.last.id, plan[:plan_ids][0] assert_equal plans_count + 1, Plan.count end end