We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb41e9f commit b8b9bbaCopy full SHA for b8b9bba
README.md
@@ -787,8 +787,8 @@ Matcher methods available:
787
describe User do
788
# aspect_ratio:
789
# #allowing, #rejecting
790
- it { is_expected.to validate_aspect_ratio_of(:avatar).allowing(:square) }
791
- it { is_expected.to validate_aspect_ratio_of(:avatar).rejecting(:portrait) }
+ it { is_expected.to validate_aspect_ratio_of(:avatar).allowing(:square, :portrait) } # possible to use an Array or *splatted array
+ it { is_expected.to validate_aspect_ratio_of(:avatar).rejecting(:square, :landscape) } # possible to use an Array or *splatted array
792
793
# attached
794
it { is_expected.to validate_attached_of(:avatar) }
0 commit comments