Do I have to create a custom Expectation Matcher?
or there is a way to integrate assert_valid_asset plugin?
thx
Do I have to create a custom Expectation Matcher?
or there is a way to integrate assert_valid_asset plugin?
thx
On 9/27/07, Edgar G. [email protected] wrote:
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users
I’m sure you could hook into some kind of validator. I jumped on
RubyForge and found http://rubyforge.org/projects/feedvalidator/. It
kind of sucks because you’d depend on a web service for this…there
have to be validators that you can run locally though, right?
Pat
On Thu, 2007-09-27 at 16:07 -0400, Edgar G. 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: Parked at Loopia
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
El 27/9/2007, a las 22:23, Pat M.
escribió:
I’m sure you could hook into some kind of validator. I jumped on
RubyForge and found http://rubyforge.org/projects/feedvalidator/. It
kind of sucks because you’d depend on a web service for this…there
have to be validators that you can run locally though, right?
Tidy (also known as HTML Tidy) can do many kinds of validation. You
may even find it preinstalled on your system:
Cheers,
Wincent
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs