Can someone give me some advice about how to test for a merb view that
contains something like -
<div id="some_id">
some_text <a href="http://example.com">some_more_text</a>
</div>
I know that rspec when used with rails allows you to write something
like -
response.should have_tag('div#some_id', 'some_text')
but I'm not sure if that's intended to work when the tag's content
involves both text and another tag (it's not working for me). Besides,
it's my impression that when used with merb the 'have_tag' method is
provided by webrat, not rspec and I don't know that the two are
identical. As far as I can tell, webrat's have_tag usage isn't
explicitly documented anywhere.
I'm in the process of reading the webrat code to see if I can figure
this out, but I'm sure others here must know exactly how to do what
I'm trying to do. Any info would be much appreciated, or especially a
pointer to any documentation I may have missed in my search.
Mark.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---