errdo 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -118,6 +118,17 @@ class ErrorsIntegrationTest < ActionDispatch::IntegrationTest
118
118
  end
119
119
  end
120
120
 
121
+ context "odd cases" do
122
+ should "create error when double render error is called" do
123
+ Errdo.notify_with slack: { webhook: "https://slack.com/test" }
124
+ stub_request :any, /.*slack.*/
125
+ assert_difference 'Errdo::ErrorOccurrence.count', 1 do
126
+ get static_double_render_error_path
127
+ end
128
+ assert_requested :any, /.*slack.*/
129
+ end
130
+ end
131
+
121
132
  private
122
133
 
123
134
  def dirty_words
@@ -0,0 +1,12 @@
1
+ Errdo.setup do |config|
2
+
3
+ # This is the name of the class inside your application that the exceptions are stored as.
4
+ # Exceptions are a reserved class name.
5
+ #
6
+ # If you want to rename it, make sure you also change the migration that comes with the gem.
7
+ # Setting this to nil means that errors won't be tracked in the database
8
+ # Note: The model name "{name}_instance" should also be free
9
+ #
10
+ config.error_name = :errs
11
+
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errdo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - erichaydel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-18 00:00:00.000000000 Z
11
+ date: 2017-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1417,7 +1417,6 @@ files:
1417
1417
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/yT/yTtHPSuoQcrWILF_zjGkfZqDXuxAI64qp9UfCmjbEZI.cache
1418
1418
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/yZ/yZjhCWWhVUVSNJf6V4nzVClRI4EYH8gm7rdAesM6XDk.cache
1419
1419
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/yg/yg04QotCA0Nyl2UMuOj7Rst0Y1BtZhxHgggoVMC-PjA.cache
1420
- - test/dummy/tmp/pids/server.pid
1421
1420
  - test/factories.rb
1422
1421
  - test/fixtures/users.yml
1423
1422
  - test/generators/active_record_generator_test.rb
@@ -1433,6 +1432,7 @@ files:
1433
1432
  - test/models/error_occurrence_test.rb
1434
1433
  - test/models/error_test.rb
1435
1434
  - test/test_helper.rb
1435
+ - test/tmp/config/initializers/errdo.rb
1436
1436
  homepage: https://github.com/erichaydel/errdo
1437
1437
  licenses:
1438
1438
  - MIT
@@ -2676,7 +2676,6 @@ test_files:
2676
2676
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ED/EDRc-nur7RglbEzZjckMYaJ9PtZn_KydaMAHu-on59c.cache
2677
2677
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ED/EDVZLiJoq6wj93pJxKsK4TI15LIXRqwx4OdFGAAr068.cache
2678
2678
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ip/IplSosjlbQ5aan_h10fBG52WhsI8ogweDeukCOuwPWI.cache
2679
- - test/dummy/tmp/pids/server.pid
2680
2679
  - test/dummy/README.rdoc
2681
2680
  - test/dummy/bin/bundle
2682
2681
  - test/dummy/bin/setup
@@ -2710,6 +2709,7 @@ test_files:
2710
2709
  - test/models/error_occurrence_test.rb
2711
2710
  - test/models/errdo_test.rb
2712
2711
  - test/models/error_test.rb
2712
+ - test/tmp/config/initializers/errdo.rb
2713
2713
  - test/generators/install_generator_test.rb
2714
2714
  - test/generators/active_record_generator_test.rb
2715
2715
  - test/generators/errdo_generator_test.rb
@@ -1 +0,0 @@
1
- 6321