{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/856","labels_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/856/comments","events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/856/events","html_url":"https://github.com/thoughtbot/shoulda-matchers/issues/856","id":121285032,"number":856,"title":"validates_numericality_of fails when given the number","user":{"login":"gmile","id":207112,"avatar_url":"https://avatars.githubusercontent.com/u/207112?v=3","gravatar_id":"","url":"https://api.github.com/users/gmile","html_url":"https://github.com/gmile","followers_url":"https://api.github.com/users/gmile/followers","following_url":"https://api.github.com/users/gmile/following{/other_user}","gists_url":"https://api.github.com/users/gmile/gists{/gist_id}","starred_url":"https://api.github.com/users/gmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmile/subscriptions","organizations_url":"https://api.github.com/users/gmile/orgs","repos_url":"https://api.github.com/users/gmile/repos","events_url":"https://api.github.com/users/gmile/events{/privacy}","received_events_url":"https://api.github.com/users/gmile/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T16:27:56Z","updated_at":"2015-12-09T17:42:39Z","closed_at":"2015-12-09T17:42:13Z","body":"Here's a minimal reproduction case the fails for me:\r\n```ruby\r\nrequire 'active_support/core_ext/date'\r\nrequire 'active_model'\r\n\r\nrequire 'shoulda/matchers/error'\r\nrequire 'shoulda/matchers/rails_shim'\r\nrequire 'shoulda/matchers/active_model'\r\n\r\nclass MyForm\r\n  include ActiveModel::Model\r\n\r\n  attr_accessor :amount\r\n\r\n  validates_numericality_of :amount, greater_or_equal_to: 0.05\r\nend\r\n\r\ndescribe MyForm do\r\n  include Shoulda::Matchers::ActiveModel\r\n\r\n  it { is_expected.to validate_numericality_of(:amount).is_greater_than_or_equal_to(0.05) }\r\nend\r\n```\r\n\r\nWith the following error:\r\n```\r\n1) MyForm should only allow numbers for amount which are greater than or equal to 0.05\r\n     Failure/Error: it { is_expected.to validate_numericality_of(:amount).is_greater_than_or_equal_to(0.05) }\r\n       Expected errors to include \"must be greater than or equal to 0.05\" when amount is set to \"-0.95\",\r\n       got no errors\r\n     # ./test.rb:18:in `block (2 levels) in <top (required)>'\r\n```\r\n\r\nI'm running on:\r\n* `shoulda_matchers` 3.0.1\r\n* `rspec` 3.3.1\r\n* `rails` 4.2.4\r\n\r\nIs this a bug in `shoulda_matchers`, or am I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/comments/163336048","html_url":"https://github.com/thoughtbot/shoulda-matchers/issues/856#issuecomment-163336048","issue_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/856","id":163336048,"user":{"login":"gmile","id":207112,"avatar_url":"https://avatars.githubusercontent.com/u/207112?v=3","gravatar_id":"","url":"https://api.github.com/users/gmile","html_url":"https://github.com/gmile","followers_url":"https://api.github.com/users/gmile/followers","following_url":"https://api.github.com/users/gmile/following{/other_user}","gists_url":"https://api.github.com/users/gmile/gists{/gist_id}","starred_url":"https://api.github.com/users/gmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmile/subscriptions","organizations_url":"https://api.github.com/users/gmile/orgs","repos_url":"https://api.github.com/users/gmile/repos","events_url":"https://api.github.com/users/gmile/events{/privacy}","received_events_url":"https://api.github.com/users/gmile/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T17:42:39Z","updated_at":"2015-12-09T17:42:39Z","body":"@mcmire should have payed more attention... thanks! "}}