Displaying 1 result from an estimated 1 matches for "be_html_with".
2009 Mar 26
0
assert2-0.4.6 provides assert_xhtml, an alternative to assert_select
...of your sample HTML
The next version will feature much better diagnostics. Until they work, if these
diagnostics are not sufficient, put :verbose! on the lowest element you think
works, and comment out its contents...
=== RSpec ===
The matching "specification", in RSpec language, is be_html_with{}.
Its syntax and behavior are the same:
it ''should have a cute form'' do
render ''/users/new''
response.body.should be_html_with{
form :action => ''/users'' do
fieldset do
legend ''Personal Inform...