File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,13 @@ class Rails < ::Rails::Railtie
32
32
end
33
33
end
34
34
35
+ config . before_initialize do
36
+ Raven . configuration . logger = ::Rails . logger
37
+ end
38
+
35
39
config . after_initialize do
36
40
Raven . configure do |config |
37
41
config . project_root ||= ::Rails . root
38
- config . logger ||= ::Rails . logger
39
42
config . release ||= config . detect_release # if project_root has changed, need to re-check
40
43
end
41
44
Original file line number Diff line number Diff line change 6
6
7
7
describe TestApp , :type => :request do
8
8
before ( :all ) do
9
- Raven . configure do |config |
9
+ @original_configuration = Raven . configuration
10
+
11
+ Raven . configuration = Raven ::Configuration . new . tap do |config |
10
12
config . dsn = 'dummy://12345:[email protected] :3000/sentry/42'
11
13
config . encoding = 'json'
12
- config . logger = false
13
14
end
15
+
14
16
Rails . logger = Logger . new ( nil )
15
17
Rails . env = "production"
16
18
TestApp . initialize!
17
19
end
18
20
21
+ after ( :all ) do
22
+ Raven . configuration = @original_configuration
23
+ end
24
+
19
25
after ( :each ) do
20
26
Raven . client . transport . events = [ ]
21
27
end
You can’t perform that action at this time.
0 commit comments