[rspec-users] newbie: need help to write the spec for helper

Nasir Jamal nas35_in at yahoo.com
Wed Dec 31 09:00:37 EST 2008


Hi,

I am a rspec newbie, can anyone guide me on how to write a spec for the below helper.

module MyHelper
 def test
   link_to('MyLink', resources_path) if @categories || @sub_categories
 end
end

@categories is an instance of Category model
@sub_categories is an instance of SubCategory model





      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081231/837a3fb0/attachment.html>


More information about the rspec-users mailing list