is there any good way to test a controller with rspec? Actually, I'm testing the complete output (including the rendered view) with rack/test.
Take the following minimal controller for example:
MyApp.controllers :cool_controller do
get :index do
some_var = DateTime.now
render 'some_view', :locals => { :dont_know => nil, :some_var => some_var }
end
end
What would be the best option to test, that the values in the locals hash are like I expect them to be?