RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: diabolo
Site: blog.andrew.premdas.org
I suspect your test is so slow because of page.should_not have_content. Instead use page.should have_no_content
page.should_not have_content
page.should have_no_content
The first one will wait and see if the content appears. The second will test straight away that there is no content.
I suspect your test is so slow because of
page.should_not have_content
. Instead usepage.should have_no_content
The first one will wait and see if the content appears. The second will test straight away that there is no content.