Confirmed that in test.rb (running in test environment) the following line 
exists:

config.action_dispatch.show_exceptions = false

So that’s not the issue.

> On Jul 12, 2020, at 2:22 AM, Filipp Pirozhkov <[email protected]> wrote:
> 
> My only guess is that 
> ```
>   config.action_dispatch.show_exceptions = true
> ```
> can you please check if this is true?
> 
> 
> On Saturday, July 11, 2020 at 3:30:53 AM UTC+3, Jack R-G wrote:
> I have read (and experienced by testing) that if, in a controller, you do a 
> AR#find on a record id that does not exist, it throws an AR::RecordNotFound 
> error which is trapped by the default error handling in controllers and 
> results in a 404 status being returned by the controller. This happens with 
> no special code added by the user.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rspec/ca2c95ef-572a-4cb7-8136-7685b5ad2420o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/rspec/ca2c95ef-572a-4cb7-8136-7685b5ad2420o%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/BE2E777E-9DC6-4E5C-9A52-E053E60231F1%40pobox.com.

Reply via email to