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:
parent
d090091540
commit
88ffa10a56
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue