You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It probably never happened but defining a optional parameter with a message attribute will raise an exception.
The following test will fail.
context'optional param with message'dolet(:app)doClass.new(described_class)doparamsdooptional'test',message: 'is required'endget'test'endendbeforedoendit'should return a message'doexpect{get'test'}.not_toraise_errorendend
It's an easy fix where we need to remove the message key even if presence is not required.
The text was updated successfully, but these errors were encountered:
@wwqwq2313 almost, but since :message act only on required field, we just need to delete it on optional field. Also, when adding :presence, we should delete the :message the validations.
It probably never happened but defining a optional parameter with a message attribute will raise an exception.
The following test will fail.
It's an easy fix where we need to remove the
message
key even if presence is not required.The text was updated successfully, but these errors were encountered: