On Fri, Dec 19, 2008 at 1:09 AM, Andrew Premdas <aprem...@gmail.com> wrote:
> then we have > > 1) Defined semantic tags that the designer should not touch > 2) Not relied on any html elements that a designer might change > 3) Created a step that works with the meaning of the UI not its presentation > > So what do you think? 100% agree. The more semantic your test code is, the less likely it is to break, and the more likely it ought to when it does. If there's no longer a #lorries element on the page, the step will fail, but that's a lot like saying that if the lorries aren't on the page the step will fail. And that's a good thing. Peter _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users