1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Fix typo in documentation of allow_values (#1241)

Example in allow_values was wrong. It provides a valid value while using
should_not allow_values, so the test was failling but it was claiming in
documentation that the test will pass
This commit is contained in:
pacop 2019-08-30 15:07:32 +02:00 committed by Elliot Winkler
parent c32307fe33
commit 1424713162

View file

@ -41,7 +41,7 @@ module Shoulda
# end
#
# it do
# should_not allow_values('http://foo.com', 'buz').
# should_not allow_values('foo', 'buz').
# for(:website_url)
# end
# end
@ -51,7 +51,7 @@ module Shoulda
# should allow_values('http://foo.com', 'http://bar.com/baz').
# for(:website_url)
#
# should_not allow_values('http://foo.com', 'buz').
# should_not allow_values('foo', 'buz').
# for(:website_url)
# end
#