[rspec-users] response.body.should be_xml_with -- how to do nested xpath matches
phlip2005 at gmail.com
Sun Mar 8 14:45:13 EDT 2009
Zach Dennis wrote:
>> response.body.should be_xml_with do
>> form :action => '/users' do
>> fieldset do
>> legend "Personal Information"
>> label "First name"
>> input :type => 'text', :name => 'user[first_name]'
> I like this a lot.
Then it should be ".should be_html_with"...
...and the diagnostics should be as comprehensive & detailed as mine!
More information about the rspec-users