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:
before(:each) do @user = Factory(:user) sign_in @user end
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:
before(:each) do @user = Factory(:user) sign_in @user end