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
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