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:
parent
c32307fe33
commit
1424713162
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue