Fix validations being accidentally skipped in spec

We were trying to test a before_validation call, but the `touch` method
skips validations.
This commit is contained in:
Javi Martín
2019-10-20 17:16:26 +02:00
parent 1e6aacea73
commit 35e8e9da31

View File

@@ -989,7 +989,7 @@ describe Budget::Investment do
user.erase
user.update!(document_number: nil)
expect(user.document_number).to be_blank
investment.touch
investment.valid?
expect(investment.responsible_name).to eq("123456")
end
end