Luke Bayes wrote:

d) Rails doesn't really solve the old "unit test the GUI" problem.

Rails has the best GUI unit-test rig in the industry. This is doubly incredible, because the web is one of the suckiest unit-test situations we have.

If you treat your "unit" as a thing whose job is emitting curiously constructed HTML, then you test by reading back your HTML to detect the inserted data. This doesn't prove your browser won't have bugs. No unit testing works like that. It does, however, help you safely refactor and add features.

> So
there are still some issues there. I hear that rspec goes quite a ways in this direction, but I'm not quite seeing it yet.

RSpec has nothing there; it's just a DSL that wraps standard unit testing. Its benefits and problems are the same as unit tests.

It gives itself good press, though!

--
  Phlip

Reply via email to