[openstreetmap/openstreetmap-website] Communities - communities (PR #3717)
Brian DeRocher
notifications at github.com
Thu May 30 13:55:14 UTC 2024
@openbrian commented on this pull request.
> + def test_edit_get_no_session
+ # arrange
+ c = create(:community)
+ # act
+ get edit_community_path(c)
+ # assert
+ assert_response :redirect
+ assert_redirected_to login_path(:referer => edit_community_path(c))
+ end
I can do that. Just to be clear, it is a unit test design pattern that goes back 20 years. http://wiki.c2.com/?ArrangeActAssert
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3717#discussion_r1620769857
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3717/review/2088356926 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240530/72d65ae7/attachment.htm>
More information about the rails-dev
mailing list