How can i test controllers using rspec.
I'm having devise controller, posts and comments model their relationship will be:
user has many posts and posts has many comments
in every controller i user before_filter for authenticate user:
So how can i test weather user logged in or not , how to post any message with current user and how to test the comments