Problem
You want to test with RSpec for links that are visible only after the user signs into the application.
Solution
Use the following before method in your RSpec test:
1 2 3 4 |
before(:each) do @user = Factory(:user) sign_in @user end |