module Shoulda::Matchers::ActiveModel

def validate_numericality_of(attr)


it { should validate_numericality_of(:age).only_integer }
it { should validate_numericality_of(:price) }
Examples:

* only_integer - allows only integer values
translation for :not_a_number.
errors.on(:attribute). Regexp or string. Defaults to the
* with_message - value the test expects to find in
Options:

Ensure that the attribute is numeric.
:nodoc:
def validate_numericality_of(attr)
  ValidateNumericalityOfMatcher.new(attr)
end