diff --git a/spec/acceptance/test_unit_spec.rb b/spec/acceptance/test_unit_spec.rb index 97b175dd9..24735a6a7 100644 --- a/spec/acceptance/test_unit_spec.rb +++ b/spec/acceptance/test_unit_spec.rb @@ -133,8 +133,7 @@ describe command('pdk test unit') do its(:exit_status) { is_expected.not_to eq(0) } - its(:stdout) { is_expected.to match(/An error occurred while loading.*syntax_spec.rb/) } - its(:stdout) { is_expected.to match(/SyntaxError/) } + its(:stdout) { is_expected.to match(/While loading .*syntax_spec.rb a `raise SyntaxError` occurred/) } end end