[rspec-users] Testing for the number of occurrences of a word

Bart Zonneveld zuperinfinite at gmail.com
Tue Mar 10 08:16:24 EDT 2009

Hey list,

Quick question: How can I check that a given word appears a number of  
times on a page?
The page in question includes some XML, rendered with &lts and &gts  
and I want to test that a given node exists 10 times on that page.


More information about the rspec-users mailing list