spec: fix rspec raise_error warning

Rspec warns that if there is for example a SyntaxError, the test will
pass (an error was raised, but it wasn't an ArgumentError, so this is
fine).

Instead check that no error occurs whatsoever.
This commit is contained in:
Pierre de La Morinerie 2021-02-04 12:38:02 +01:00
parent d090091540
commit 88ffa10a56

View file

@ -370,7 +370,7 @@ describe ProcedureExportService do
end
it 'should have valid sheet name' do
expect { subject }.not_to raise_error(ArgumentError)
expect { subject }.not_to raise_error
end
end