-
-
Notifications
You must be signed in to change notification settings - Fork 520
Description
We have only configured raven for production and staging, but it seems to be executing the blog even while running tests.
This was a controller test which was failing, but debugging is hard because this error crops up. In the controller we were attempting to capture exception using Raven and I thought by default it would only happen in the configured environments.
How can we fix this?
/Users/pratikbothra/.rvm/gems/ruby-2.2.2/gems/sentry-raven-1.1.0/lib/raven/utils/deep_merge.rb:10:in deep_merge!': undefined methodeach_pair' for #RSpec::Mocks::MockExpectationError:0x007fb70acc04c0 (NoMethodError)
from /Users/pratikbothra/.rvm/gems/ruby-2.2.2/gems/sentry-raven-1.1.0/lib/raven/utils/deep_merge.rb:6:in deep_merge' from /Users/pratikbothra/.rvm/gems/ruby-2.2.2/gems/sentry-raven-1.1.0/lib/raven/event.rb:75:infrom_exception'
from /Users/pratikbothra/.rvm/gems/ruby-2.2.2/gems/sentry-raven-1.1.0/lib/raven/base.rb:111:in capture_type' from /Users/pratikbothra/.rvm/gems/ruby-2.2.2/gems/sentry-raven-1.1.0/lib/raven/base.rb:256:inblock in install_at_exit_hook'