[openstreetmap/openstreetmap-website] Create a SessionsController (#3147)

Tom Hughes notifications at github.com
Wed Mar 24 15:35:33 UTC 2021


@tomhughes commented on this pull request.



> +    )
+    assert_recognizes(
+      { :controller => "sessions", :action => "destroy", :format => "html" },
+      { :path => "/logout.html", :method => :get }
+    )
+  end
+
+  def test_login
+    user = create(:user)
+
+    get login_path
+    assert_response :redirect
+    assert_redirected_to login_path(:cookie_test => true)
+    follow_redirect!
+    assert_response :success
+    assert_template "sessions/new"

Let's leave it as it is in that case - we should probably aim to move to that syntax more generally!

-- 
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/3147#discussion_r600599786
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210324/fbcf9c1b/attachment.htm>


More information about the rails-dev mailing list