You can’t see it? I’m asking because I noticed posts of my own appearing/ disappearing for no obvious reason.
@yonigeek I don’t see how that could possibly cause problems – as long as the front and back know how to talk to each other, they should get along fine. Of course, they need to know how to interact anyway – that’s not a deployment or testing issue.
I am working on an all-in-one HTML/CSS validation gem for Ruby On Rails apps. It’s name is Headhunter.
From the docs:
Headhunter is an HTML and CSS validation tool that injects itself into your Rails feature tests and automagically checks all your generated HTML and CSS for validity.
In addition, it also looks out for unused (and therefore superfluous) CSS selectors.
All you have to do is add gem ‘headhunter’ to your Gemfile in test environment:
group :test do
The rest is all done automagically for you, and you’ll get a statistic for your application’s validness at the end of your tests, like this:
Validated 42 HTML pages.
41 pages are valid.
1 page is invalid.
Open .validation/results.html to view full results.
Validated 1 stylesheets.
1 stylesheet is invalid.
- Invalid css: line 1: Property bla doesn't exist
Found 23 CSS selectors.
20 selectors are in use.
3 selectors are not in use: a img, #flash.failure, input[type='file']
It would be nice if you gave it a try and send me some feedback!