Railers:
Here''s a non-heinous view test, via the mental serenity that is
ZenTest:
class FrogSpeciesViewTest < Test::Rails::ViewTestCase
def test_species_list
frog = frogs(:Ollotis_periglenes)
locals = {
:frog_genera => Species.find_all_by_genera(''Bufo'')
}
render :partial => ''partials/species_list'', :locals
=> locals
end
end
So far so good. But what if we want to pass params in? We can''t seem
to find a hook for them, and if we pass them as a local something
blots them out. Any help?
--
Phlip
http://www.oreilly.com/catalog/9780596510657/
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---