I am using Capybara in combination with rspec for integration testing
of rails apps.
I would like any errors (routing errors, errors in a controller,
anything) generated during a test to be printed the same as “puts”
statements in rspec’s output. Is this possible? Additionally, is this
a reasonable idea, or am I just being silly?
Ah, I see what you are saying. But no, I still want the exception to act like
an exception. My problem is that I’ll have a test fail for reasons unknown, and I
then I need to open the test logs to find the exception. I’d like those
exceptions to show up in my test output so I don’t have to dig for
them._______________________________________________
rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
Okay I see what you’re talking about now. Take a look at this:
Ah, I see what you are saying. But no, I still want the exception to act like
an exception. My problem is that I’ll have a test fail for reasons unknown, and I
then I need to open the test logs to find the exception. I’d like those
exceptions to show up in my test output so I don’t have to dig for them.
Ah, I see what you are saying. But no, I still want the exception to
act
like an exception. My problem is that I’ll have a test fail for reasons
unknown, and I then I need to open the test logs to find the exception.
I’d like those exceptions to show up in my test output so I don’t have
to
dig for them.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.