File: ignore-mail-warning.patch

package info (click to toggle)
ruby-rspec-rails 8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,804 kB
  • sloc: ruby: 10,881; sh: 198; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Bug: https://github.com/mikel/mail/issues/1384

Patch from https://github.com/ubicloud/ubicloud/pull/197

Forwarded: not-needed

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,4 +1,7 @@
 require 'rails/all'
+require 'warning'
+
+Warning.ignore([:not_reached, :unused_var], /.*vendor_ruby\/mail\/parser.*/)
 
 module RSpecRails
   class Application < ::Rails::Application