Testing Views that use Devise with RSpec

前端 未结 2 1428
暗喜
暗喜 2020-12-09 16:20

I am trying to get a previously passing rspec \"view spec\" to pass after adding Devise\'s user_signed_in? method to the view template in question. The template

2条回答
  •  遥遥无期
    2020-12-09 16:39

    Have a look at Rails Composer, this will guide you through a new rails project creation with options like testing, UI etc..

    Create a sample project, cool thing is it will create all the test for you including view testing with devise. Then you can get an idea from those testing specs.

    worked for me :D

    HTH

提交回复
热议问题