Ruby on rails 如何获得完整的堆栈跟踪而不是“跟踪”;处理请求时出现意外错误“;在Rails测试环境中?

Ruby on rails 如何获得完整的堆栈跟踪而不是“跟踪”;处理请求时出现意外错误“;在Rails测试环境中?,ruby-on-rails,testing,Ruby On Rails,Testing,当在测试环境(rails s-e test)中启动我的rails服务器时,有东西正在拯救异常并输出“处理请求时出现意外错误:…此处出错…”。我在开发模式中得到回溯 是谁,我怎么才能禁用它?我需要完整的回溯,而不仅仅是引发的错误 我正在使用Rails 3.2.3、Ruby 1.9.3、rspec、capybara、capybara webkit设置config.action\u dispatch.show\u exceptions=true中的test.rb为我做了这件事。阅读env.rb由Cuc

当在测试环境(
rails s-e test
)中启动我的rails服务器时,有东西正在拯救异常并输出“处理请求时出现意外错误:…此处出错…”。我在开发模式中得到回溯

是谁,我怎么才能禁用它?我需要完整的回溯,而不仅仅是引发的错误


我正在使用Rails 3.2.3、Ruby 1.9.3、rspec、capybara、capybara webkit

设置
config.action\u dispatch.show\u exceptions=true
中的
test.rb
为我做了这件事。

阅读
env.rb
由Cucumber创建:

# By default, any exception happening in your Rails application will bubble up
# to Cucumber so that your scenario will fail. This is a different from how 
# your application behaves in the production environment, where an error page will 
# be rendered instead.
...
# 1) Tag your scenario (or feature) with @allow-rescue
# 2) Set the value below to true. Beware that doing this globally is not
# recommended as it will mask a lot of errors for you!
总结:

@allow-rescue
Feature: blah blah blah

将成功。

您是否取消了
config/initializers/backtrace\u消音器.rb中的行注释?(由于我还没有接触过3.2,所以作为评论发布)没有,但我只是试图取消对remove_消音器的注释!没有更改。您是否在
test.rb
中设置了
config.consive\u all\u requests\u local=true
?是的,
consive\u all\u requests\u local
环境/test.rb
中设置为true