From 1bafc32ff07e95862f4d5735dfa5cb730363c48e Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Tue, 9 May 2023 16:08:36 +0100 Subject: [PATCH] (CONT-935) Correct example count Prior to this change, the example count in a few tests was incorrect. This was causing the tests to fail. This change corrects the example count to help the tests pass. --- spec/acceptance/test_unit_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/test_unit_spec.rb b/spec/acceptance/test_unit_spec.rb index 55cb0d7d3..bb32a271a 100644 --- a/spec/acceptance/test_unit_spec.rb +++ b/spec/acceptance/test_unit_spec.rb @@ -89,7 +89,7 @@ describe command('pdk test unit') do its(:exit_status) { is_expected.not_to eq(0) } its(:stdout) { is_expected.to match(/expected: true.*got: false/im) } - its(:stdout) { is_expected.to match(/1 examples?.*1 failures?/im) } + its(:stdout) { is_expected.to match(/2 examples?.*1 failures?/im) } end end @@ -107,7 +107,7 @@ describe command('pdk test unit') do its(:exit_status) { is_expected.to eq(0) } - its(:stdout) { is_expected.to match(/1 examples?.*0 failures.*1 pending/im) } + its(:stdout) { is_expected.to match(/2 examples?.*0 failures.*1 pending/im) } end end