Re: [rspec-users] Testing selector order

2012-03-01 Thread Andrew Premdas
On 1 March 2012 16:43, Mike Kim wrote: > Could someone point me to a reference that explains how I would test > the order of elements on an HTML page? > > For example, in RSpec I would like to verify that the content of one > element appears before the content of another. > > response.should hav

[rspec-users] Testing selector order

2012-03-01 Thread Mike Kim
Could someone point me to a reference that explains how I would test the order of elements on an HTML page? For example, in RSpec I would like to verify that the content of one element appears before the content of another. response.should have_selector("p", :content => "Should appear first") re