Re: [rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-09 Thread Ben Mabey
aslak hellesoy wrote: On Mon, Feb 9, 2009 at 3:58 PM, Stephen Eley wrote: On Mon, Feb 9, 2009 at 6:11 AM, aslak hellesoy wrote: It's because Cucumber's Rails support configures ActionController to send all errors straight through. See cucumber/rails/world.rb Patches and suggestions a

Re: [rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-09 Thread Zach Dennis
On Mon, Feb 9, 2009 at 10:21 AM, aslak hellesoy wrote: > On Mon, Feb 9, 2009 at 3:58 PM, Stephen Eley wrote: >> On Mon, Feb 9, 2009 at 6:11 AM, aslak hellesoy >> wrote: >>> >>> It's because Cucumber's Rails support configures ActionController to >>> send all errors straight through. >>> See cuc

Re: [rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-09 Thread aslak hellesoy
On Mon, Feb 9, 2009 at 3:58 PM, Stephen Eley wrote: > On Mon, Feb 9, 2009 at 6:11 AM, aslak hellesoy > 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

Re: [rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-09 Thread Stephen Eley
On Mon, Feb 9, 2009 at 6:11 AM, aslak hellesoy 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 e

Re: [rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-09 Thread aslak hellesoy
On Fri, Feb 6, 2009 at 6:12 PM, Jeff Talbot wrote: > Hello, > > I have a controller action that raises a RecordNotFound exception if > you're not allowed to see something. In my global application > controller (application.rb), I catch these and render the 404 > template. But when I run cucumber (

Re: [rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-08 Thread Matt Wynne
Which version of cucumber / webrat are you using? On 6 Feb 2009, at 17:12, Jeff Talbot wrote: Hello, I have a controller action that raises a RecordNotFound exception if you're not allowed to see something. In my global application controller (application.rb), I catch these and render the 404

[rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-06 Thread Jeff Talbot
Hello, I have a controller action that raises a RecordNotFound exception if you're not allowed to see something. In my global application controller (application.rb), I catch these and render the 404 template. But when I run cucumber (using webrat), it's getting the full stacktrace (the step blows