Skip to content

Commit b8b9bba

Browse files
committed
Update README.md
1 parent eb41e9f commit b8b9bba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,8 @@ Matcher methods available:
787787
describe User do
788788
# aspect_ratio:
789789
# #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) }
790+
it { is_expected.to validate_aspect_ratio_of(:avatar).allowing(:square, :portrait) } # possible to use an Array or *splatted array
791+
it { is_expected.to validate_aspect_ratio_of(:avatar).rejecting(:square, :landscape) } # possible to use an Array or *splatted array
792792
793793
# attached
794794
it { is_expected.to validate_attached_of(:avatar) }

0 commit comments

Comments
 (0)