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
1 changed files with 2 additions and 2 deletions

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
#