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:
@@ -989,7 +989,7 @@ describe Budget::Investment do
|
|||||||
user.erase
|
user.erase
|
||||||
user.update!(document_number: nil)
|
user.update!(document_number: nil)
|
||||||
expect(user.document_number).to be_blank
|
expect(user.document_number).to be_blank
|
||||||
investment.touch
|
investment.valid?
|
||||||
expect(investment.responsible_name).to eq("123456")
|
expect(investment.responsible_name).to eq("123456")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user