]> git.openstreetmap.org Git - rails.git/commit
Refactor the gravatar email changes to use webmock stubbing
authorAndy Allan <git@gravitystorm.co.uk>
Sun, 30 Oct 2016 10:06:35 +0000 (11:06 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Sun, 30 Oct 2016 10:06:35 +0000 (11:06 +0100)
commit4d73706ff349e043ca62612e977ae600e8cae4ad
tree64fbe5d3b957a9da45149fd62f65c0d7cce5ef26
parent5e86393f72f62a1f37ca49d5dfe4ea64f8290a3e
Refactor the gravatar email changes to use webmock stubbing

The main reason for doing this is to make the tests easier to read,
rather than having to look up both the gravatar fixture, and then
correlate that with the users fixture. Putting the expected response
code in the tests is much more explicit.
test/controllers/user_controller_test.rb
test/http/gravatar.yml [deleted file]
test/test_helper.rb