Thanks for the answers
I just looked again at the html rails is generating and in fact the
element I'm looking for looks like this:
<span title="required field">*</span>
Would I test for this like so:
assert_select "form" do
assert_select("span.title.required field", :count => 13)
When I run it, I get the error message:
Expected at least 13 elements matching "span.required_field", found 0.
I installed the recommended gem and using that the test works just fine:
form :xpath! => 'count(.//span[ @title= "required field" ]) =
One question however, is there any way to turn off the "...in this
sample..." aspect of the output, as if the does find any errors, it
returns my entire html page.
Could not find this reference...
<form xpath!="count(.//span[ @class = "required field" ]) =
...in this sample...
300 lines of html follow