title: ActionController::RoutingError: No route matches [POST]
body: <pre><code>    require 'test_helper'
  
       class MyTest &lt; ActionController::IntegrationTest
  
        test "view posts from login page" do
        visit("/logins/new")
        find_field('Username').set('abode')
        find_field('Password').set('efghi')
        click_link_or_button('Login')
        assert page.has_content?('Signed in!')
        end
  
        test "go to new user page" do
          visit("/logins/new")
          click_link("New user?")
          assert (current_path == "/users/new")
        end
  
      end
  
     Error:
  test_view_posts_from_login_page(MyTest):
  ActionController::RoutingError: No route matches [POST] "/logins/new"
      test/integration/view_posts_test.rb:12:in `block in &lt;class:MyTest&gt;'
  </code></pre>
  
  <p>It shows error for line 12. Is there a problem with button "Login" or the /logins/new path? The second test passes though so the path should be correct? What am I doing wrong?</p>
  
  <p>Thanks!</p>