Hi

I am very new to rspec and would like to learn more.  I have googled
around and asked in irc with no firm answers.


I have the following controller :

   class ProductsController < ApplicationController

     before_filter :loadsidebar

     def show
       @category = Category.find(params[:id])
       @products = @category.products
     end

     private

     def loadsidebar
       @categories = Category.find(:all)
     end

   end

rCov reports that the code in the show and loadsidebar methods is not
covered.    Can someone please guide me to how best to test these?

Thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to