Sigh. Sorry to ask such a dumb question, but I''ve hit one of those
walls...
I''m testing a view which uses the params[] hash directly. (Aside: is
this bad form?)
How the heckers do I set up the params hash in my test?
I''ve tried calling
render ''some/view'', { :first_param => true }
...but nothing seems to be coming though.
What am I doing wrong?
cheers,
Matt
----
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rspec-users/attachments/20080819/3a5dcfee/attachment.html>
On Tue, Aug 19, 2008 at 6:18 AM, Matt Wynne <matt at mattwynne.net> wrote:> Sigh. Sorry to ask such a dumb question, but I''ve hit one of those walls... > I''m testing a view which uses the params[] hash directly. (Aside: is this > bad form?) > How the heckers do I set up the params hash in my test? > I''ve tried calling > render ''some/view'', { :first_param => true } > ...but nothing seems to be coming though. > What am I doing wrong?http://rspec.info/documentation/rails/writing/views.html Cheers, David