mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Update docs for validate_numericality_of matcher
Typo in the `is_less_than_or_equal_to` method
This commit is contained in:
parent
31a0913d7f
commit
5f9e1bc5fb
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module Shoulda # :nodoc:
|
||||||
# it { should validate_numericality_of(:age).only_integer }
|
# it { should validate_numericality_of(:age).only_integer }
|
||||||
# it { should validate_numericality_of(:frequency).odd }
|
# it { should validate_numericality_of(:frequency).odd }
|
||||||
# it { should validate_numericality_of(:frequency).even }
|
# it { should validate_numericality_of(:frequency).even }
|
||||||
# it { should validate_numericality_of(:rank).less_than_or_equal_to(10).allow_nil }
|
# it { should validate_numericality_of(:rank).is_less_than_or_equal_to(10).allow_nil }
|
||||||
#
|
#
|
||||||
def validate_numericality_of(attr)
|
def validate_numericality_of(attr)
|
||||||
ValidateNumericalityOfMatcher.new(attr)
|
ValidateNumericalityOfMatcher.new(attr)
|
||||||
|
|
Loading…
Reference in a new issue