doriath/shoulda-matchers — pull request #1 by doriath (2012-08-09 13:46:41+00:00)
Title: Additional parameters for validate numericality

I merged the current master branch with pull request from:

https://github.com/thoughtbot/shoulda-matchers/pull/82

and resolved merge conflicts.

The code has changed a little bit, so it is possible that it will require some refactoring. Few suggestions:

1. use @options hash, instead instance variables. Example:

````ruby
def greater_than(number)
@options[:greater_than] = number
@options[:grader_than_message] ||= :greater_than
end
````
2. disallows_text? and disallows_non_integers? methods have *?* at the end of the method, but new methods like disallows_equal_to_value, doesn't have it. It would be good to make it uniform.