“Could not find a valid mapping for #” only on second and successive tests

后端 未结 9 1963
花落未央
花落未央 2020-12-28 13:28

I\'m trying to write a request test that asserts that the proper links appear on the application layout depending in whether a user is logged in or out. FWIW, I\'m using Dev

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 14:12

    Add this line to your routes.rb

    # Devise routes
    devise_for :users # Or the name of your custom model
    

提交回复
热议问题