[rspec-users] RecordNotFound bubbling thru to cucumber

Zach Dennis zach.dennis at gmail.com
Mon Feb 9 11:36:30 EST 2009


On Mon, Feb 9, 2009 at 10:21 AM, aslak hellesoy
<aslak.hellesoy at gmail.com> wrote:
> On Mon, Feb 9, 2009 at 3:58 PM, Stephen Eley <sfeley at gmail.com> wrote:
>> On Mon, Feb 9, 2009 at 6:11 AM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
>>>
>>> It's because Cucumber's Rails support configures ActionController to
>>> send all errors straight through.
>>> See cucumber/rails/world.rb
>>>
>>> Patches and suggestions about how to improve this are welcome.
>>> (In most cases it's easier to spot errors when exceptions ripple through)
>>
>> Make it a configuration option?  Or catch it with a proxy that
>> inspects the exception then passes it *back* to Rails, and provide
>> matchers or formatting options that display Cucumber's analysis only
>> when the user wants it?
>>
>> I'm with Jeff on this: RecordNotFound isn't necessarily an "error,"
>> it's just an exception.  One that will frequently come up in normal
>> user interaction.  A well-behaved app will do appropriate things with
>> that exception and Cucumber should be able to test for those
>> appropriate things.  A testing framework that disrupts the application
>> behavior cannot test it.
>>
>
> Good points. Please create a Lighthouse ticket for this. I'm looking
> forward to concrete suggestions about how to make this configurable
> and patches I can pull in :-)

There is already a ticket:

http://rspec.lighthouseapp.com/projects/16211/tickets/49-cucumber-and-rails-controller-error-handling

=)


>
> Aslak
>
>>
>>
>> --
>> Have Fun,
>>   Steve Eley (sfeley at gmail.com)
>>   ESCAPE POD - The Science Fiction Podcast Magazine
>>   http://www.escapepod.org
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
>
>
>
> --
> Aslak (::)
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com


More information about the rspec-users mailing list