Re: [rspec-users] Exception handling

2010-06-30 Thread David Chelimsky
On Jun 30, 2010, at 10:46 AM, Marcos Chicote wrote: > On Wed, Jun 30, 2010 at 12:31 PM, David Chelimsky > wrote: > On Jun 30, 2010, at 9:29 AM, Marcos Chicote wrote: > >> On Wed, Jun 30, 2010 at 11:12 AM, David Chelimsky >> wrote: >> On Jun 30, 2010, at 9:05 AM, Marcos Chicote wrote: >> >>

Re: [rspec-users] Exception handling

2010-06-30 Thread Marcos Chicote
On Wed, Jun 30, 2010 at 12:31 PM, David Chelimsky wrote: > On Jun 30, 2010, at 9:29 AM, Marcos Chicote wrote: > > On Wed, Jun 30, 2010 at 11:12 AM, David Chelimsky wrote: > >> On Jun 30, 2010, at 9:05 AM, Marcos Chicote >> wrote: >> >> I don't think so, but I don't really know how to check it pro

Re: [rspec-users] Exception handling

2010-06-30 Thread David Chelimsky
On Jun 30, 2010, at 9:29 AM, Marcos Chicote wrote: > On Wed, Jun 30, 2010 at 11:12 AM, David Chelimsky > wrote: > On Jun 30, 2010, at 9:05 AM, Marcos Chicote wrote: > >> I don't think so, but I don't really know how to check it programatically. >> I don't mean exceptions in before/after methos

Re: [rspec-users] Exception handling

2010-06-30 Thread Marcos Chicote
On Wed, Jun 30, 2010 at 11:12 AM, David Chelimsky wrote: > On Jun 30, 2010, at 9:05 AM, Marcos Chicote wrote: > > I don't think so, but I don't really know how to check it programatically. > I don't mean exceptions in *before/after *methos, but inside *it()* method > > I would like to write somet

Re: [rspec-users] Exception handling

2010-06-30 Thread David Chelimsky
On Jun 30, 2010, at 9:05 AM, Marcos Chicote wrote: I don't think so, but I don't really know how to check it programatically. I don't mean exceptions in before/after methos, but inside it() method I would like to write something like this: after(:each) do if exception_occured_on_it_method?

Re: [rspec-users] Exception handling

2010-06-30 Thread Marcos Chicote
I don't think so, but I don't really know how to check it programatically. I don't mean exceptions in *before/after *methos, but inside *it()* method I would like to write something like this: after(:each) do if exception_occured_on_it_method? do_something end end Is that possible? On Wed, Jun 3

Re: [rspec-users] Exception handling

2010-06-30 Thread David Chelimsky
On Jun 30, 2010, at 8:45 AM, Marcos Chicote wrote: > Hello, > I'm new in Rspec and I would like to ask a question. > Suppose I have a test that fails raising an exception. I do not want the test > to raise an exception and I'm not expecting one, but something fails and an > exception occurs. > I

[rspec-users] Exception handling

2010-06-30 Thread Marcos Chicote
Hello, I'm new in Rspec and I would like to ask a question. Suppose I have a test that fails raising an exception. I do not want the test to raise an exception and I'm not expecting one, but something fails and an exception occurs. Is there some way to handle that exception and do something in that