[openstreetmap/openstreetmap-website] Replace user_blocks fixture with a factory. (#1330)

Andy Allan notifications at github.com
Wed Oct 19 09:59:22 UTC 2016


Traits are used here to make the tests easier to read, and the different traits can be combined where necessary.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/1330

-- Commit Summary --

  * Replace user_blocks fixture with a factory.

-- File Changes --

    M test/controllers/amf_controller_test.rb (1)
    M test/controllers/user_blocks_controller_test.rb (99)
    M test/controllers/user_controller_test.rb (2)
    A test/factories/user_blocks.rb (25)
    D test/fixtures/user_blocks.yml (29)
    M test/integration/user_blocks_test.rb (2)
    M test/integration/user_login_test.rb (8)
    M test/test_helper.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1330.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1330.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1330
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20161019/6d260333/attachment-0001.html>


More information about the rails-dev mailing list