Last Updated: February 25, 2016
·
314
· khamilowicz

Fast rspec page lookup

Debugging rspec tests? Need to look up page's content? save_and_open_page waaay too slow?

Here's a trick:

true.should be_false, page.find('body').native

Need the html? No problemos!

true.should be_false, "#{page.find('body').native}"