On Thu, 2007-09-27 at 16:07 -0400, Edgar Gonzalez wrote: > Do I have to create a custom Expectation Matcher? > > or there is a way to integrate assert_valid_asset plugin? > > thx
I'm using this expectation to check for valid XHTML using a locally installed copy of tidy: http://pastie.caboo.se/101660 In my controller tests I'm including something like it 'should be a valid XHTML page' do get :index response.should be_xhtml end Note the :show option also. Tidy outputs its errors with the line numbers which can be a pain to track down. Using bx_xhtml(:show => true) will first show the generated code and then the tidy warnings. Kind regards, Hans
signature.asc
Description: This is a digitally signed message part
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
