Hi all,
In my view specs (for Rails), how can I get at instance variables that
are set within my view? For example, if my view looks like this:
<% @header = "My Header" -%>
some content
How can I get to @header from within my view spec? I've tried @header
and assigns[:header] to no avail.
T
rspec-users@rubyforge.org
(cross-posting)
On Jun 29, 2007, at 9:20 AM, Bill Kocik wrote:
I didn't see any forums or lists for RSpec users, so I'm hoping there
are RSpec users on this list who may be able to help.
I have this in my routes.rb:
map.signup 'signup/:step',
:controller => 're
On 6/29/07, Tom Locke <[EMAIL PROTECTED]> wrote:
> Is something like Rails' assert_dom_equal available?
Well, yes and no.
Spec::Rails wraps test/unit, so you can use assert_dom_equal directly.
If you'd like to see this in a matcher, feel free to submit an RFE -
ideally with a patch.
http://rubyf
Is something like Rails' assert_dom_equal available?
such that is equal to
What I really need is something that will work for a whole fragment
of xml, not just a single tag.
Google says no, but google doesn't know everything. Or maybe I don't
know what the correct question is :-)
Tom
_