[rspec-users] custom, nested HTML matchers in RSpec

Phlip phlip2005 at gmail.com
Mon Mar 9 19:20:56 EDT 2009


> http://gist.github.com/76136

>     response.body.should be_html_with{
>       form :action => '/users' do
>         fieldset do
>           legend 'Personal Information'
>           label 'First name'
>           input :type => 'text', :name => 'user[first_name]'
>         end
>       end
>     }

Has anyone tried this? is it useful?



More information about the rspec-users mailing list