{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/784","labels_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/784/comments","events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/784/events","html_url":"https://github.com/thoughtbot/shoulda-matchers/issues/784","id":109539127,"number":784,"title":"validate_numericality_of matcher trying to set a string value in 3.0","user":{"login":"oniofchaos","id":1635820,"avatar_url":"https://avatars.githubusercontent.com/u/1635820?v=3","gravatar_id":"","url":"https://api.github.com/users/oniofchaos","html_url":"https://github.com/oniofchaos","followers_url":"https://api.github.com/users/oniofchaos/followers","following_url":"https://api.github.com/users/oniofchaos/following{/other_user}","gists_url":"https://api.github.com/users/oniofchaos/gists{/gist_id}","starred_url":"https://api.github.com/users/oniofchaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oniofchaos/subscriptions","organizations_url":"https://api.github.com/users/oniofchaos/orgs","repos_url":"https://api.github.com/users/oniofchaos/repos","events_url":"https://api.github.com/users/oniofchaos/events{/privacy}","received_events_url":"https://api.github.com/users/oniofchaos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/milestones/10","html_url":"https://github.com/thoughtbot/shoulda-matchers/milestones/3.0.1","labels_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/milestones/10/labels","id":1339587,"number":10,"title":"3.0.1","description":"","creator":{"login":"mcmire","id":7371,"avatar_url":"https://avatars.githubusercontent.com/u/7371?v=3","gravatar_id":"","url":"https://api.github.com/users/mcmire","html_url":"https://github.com/mcmire","followers_url":"https://api.github.com/users/mcmire/followers","following_url":"https://api.github.com/users/mcmire/following{/other_user}","gists_url":"https://api.github.com/users/mcmire/gists{/gist_id}","starred_url":"https://api.github.com/users/mcmire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcmire/subscriptions","organizations_url":"https://api.github.com/users/mcmire/orgs","repos_url":"https://api.github.com/users/mcmire/repos","events_url":"https://api.github.com/users/mcmire/events{/privacy}","received_events_url":"https://api.github.com/users/mcmire/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-10-06T04:37:56Z","updated_at":"2015-10-09T05:37:22Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2015-10-02T17:51:59Z","updated_at":"2015-10-09T05:38:30Z","closed_at":"2015-10-09T05:37:22Z","body":"I'm trying to upgrade to version 3.0 and am running into this issue in one of my model specs. The `validate_numericality_of` matcher is trying to set a float field to a string, and erroring it out when that doesn't work. I would think that it would be expected for that assignment to fail. :confused: \r\n\r\n```ruby\r\n# spec/rails_helper.rb\r\nShoulda::Matchers.configure do |config|\r\n  config.integrate do |with|\r\n    with.test_framework :rspec\r\n    with.library :rails\r\n  end\r\nend\r\n\r\n# migration file\r\nt.float :hours_worked\r\n\r\n# model file\r\nvalidates :hours_worked, numericality: true\r\n\r\n# spec file\r\nit { expect(subject).to validate_numericality_of(:hours_worked) }\r\n\r\n# error\r\nFailure/Error: it { expect(subject).to validate_numericality_of(:hours_worked) }\r\nShoulda::Matchers::ActiveModel::AllowValueMatcher::CouldNotSetAttributeError:\r\n  Expected Class to be able to set hours_worked to \"abcd\", but got 0.0 instead."},"comment":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/comments/146759134","html_url":"https://github.com/thoughtbot/shoulda-matchers/issues/784#issuecomment-146759134","issue_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/784","id":146759134,"user":{"login":"mcmire","id":7371,"avatar_url":"https://avatars.githubusercontent.com/u/7371?v=3","gravatar_id":"","url":"https://api.github.com/users/mcmire","html_url":"https://github.com/mcmire","followers_url":"https://api.github.com/users/mcmire/followers","following_url":"https://api.github.com/users/mcmire/following{/other_user}","gists_url":"https://api.github.com/users/mcmire/gists{/gist_id}","starred_url":"https://api.github.com/users/mcmire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcmire/subscriptions","organizations_url":"https://api.github.com/users/mcmire/orgs","repos_url":"https://api.github.com/users/mcmire/repos","events_url":"https://api.github.com/users/mcmire/events{/privacy}","received_events_url":"https://api.github.com/users/mcmire/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T05:38:30Z","updated_at":"2015-10-09T05:38:30Z","body":"This is fixed in 18b2859d2522a4866c398b9a32ebc3de4ec79389."}}