[rspec-users] Test::Unit Functional failure puzzle
lists at ruby-forum.com
Mon Nov 24 12:56:14 EST 2008
Matt Wynne wrote:
> Make sense?
Yes. I am afraid that my original post is based upon a naive sense of
how things work in this environment. Clearly, whenever one is dealing
with human input then the possibility of incomplete, contradictory, or
simply wrong data must be accommodated as elegantly as is possible. I
was overmuch concerned with testing at that moment to give the other
issues their due.
I have since run across the construct shown below and have used it in
the functional test rather than changing the controller code for
# This code extends the subject controller to
# display errors raised in the controller code
# in the test results
class ClientsController; def rescue_action(e) raise e end; end
# back to our test
Posted via http://www.ruby-forum.com/.
More information about the rspec-users