test: remove false positive warning about expect.not_to raise(SpecificError) syntax

This commit is contained in:
Colin Darie 2023-07-06 10:56:01 +02:00
parent 1da1e67067
commit edc790be8f

View file

@ -1019,7 +1019,7 @@ describe Procedure do
procedure.reset_draft_revision!
expect { published_tdc.reload }.not_to raise_error(ActiveRecord::RecordNotFound)
expect { published_tdc.reload }.not_to raise_error
expect { draft_tdc.reload }.to raise_error(ActiveRecord::RecordNotFound)
end
end