structured_warnings 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +21 -0
  4. data/History.txt +7 -0
  5. data/README.rdoc +5 -5
  6. data/doc/DeprecatedMethodWarning.html +76 -141
  7. data/doc/DeprecatedSignatureWarning.html +76 -141
  8. data/doc/DeprecationWarning.html +76 -141
  9. data/doc/Dynamic.html +89 -136
  10. data/doc/Object.html +92 -161
  11. data/doc/README_rdoc.html +144 -157
  12. data/doc/StandardWarning.html +76 -141
  13. data/doc/StructuredWarnings.html +95 -157
  14. data/doc/StructuredWarnings/ClassMethods.html +131 -193
  15. data/doc/StructuredWarnings/Kernel.html +146 -198
  16. data/doc/StructuredWarnings/Test.html +71 -150
  17. data/doc/StructuredWarnings/Test/Assertions.html +194 -244
  18. data/doc/StructuredWarnings/Test/Warner.html +138 -201
  19. data/doc/StructuredWarnings/Warner.html +113 -177
  20. data/doc/Test.html +95 -0
  21. data/doc/Test/Unit.html +95 -0
  22. data/doc/Warning.html +276 -338
  23. data/doc/Warning/ClassMethods.html +182 -238
  24. data/doc/created.rid +10 -10
  25. data/doc/css/fonts.css +167 -0
  26. data/doc/css/rdoc.css +590 -0
  27. data/doc/fonts/Lato-Light.ttf +0 -0
  28. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  29. data/doc/fonts/Lato-Regular.ttf +0 -0
  30. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  31. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  32. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  33. data/doc/images/add.png +0 -0
  34. data/doc/images/arrow_up.png +0 -0
  35. data/doc/images/delete.png +0 -0
  36. data/doc/images/tag_blue.png +0 -0
  37. data/doc/images/transparent.png +0 -0
  38. data/doc/index.html +104 -103
  39. data/doc/js/darkfish.js +112 -67
  40. data/doc/js/jquery.js +4 -32
  41. data/doc/js/navigation.js +142 -0
  42. data/doc/js/navigation.js.gz +0 -0
  43. data/doc/js/search.js +109 -0
  44. data/doc/js/search_index.js +1 -0
  45. data/doc/js/search_index.js.gz +0 -0
  46. data/doc/js/searcher.js +228 -0
  47. data/doc/js/searcher.js.gz +0 -0
  48. data/doc/table_of_contents.html +200 -0
  49. data/lib/structured_warnings/dynamic.rb +12 -6
  50. data/lib/structured_warnings/kernel.rb +4 -4
  51. data/structured_warnings.gemspec +5 -1
  52. data/test/structured_warnings_test.rb +63 -9
  53. metadata +84 -43
  54. data/doc/js/quicksearch.js +0 -114
  55. data/doc/js/thickbox-compressed.js +0 -10
  56. data/doc/lib/structured_warnings/dynamic_rb.html +0 -65
  57. data/doc/lib/structured_warnings/kernel_rb.html +0 -52
  58. data/doc/lib/structured_warnings/test/assertions_rb.html +0 -52
  59. data/doc/lib/structured_warnings/test/warner_rb.html +0 -52
  60. data/doc/lib/structured_warnings/test_rb.html +0 -56
  61. data/doc/lib/structured_warnings/warner_rb.html +0 -52
  62. data/doc/lib/structured_warnings/warning_rb.html +0 -64
  63. data/doc/lib/structured_warnings_rb.html +0 -62
  64. data/doc/rdoc.css +0 -763
@@ -1,176 +1,97 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Module: StructuredWarnings::Test</title>
9
-
10
- <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
1
+ <!DOCTYPE html>
16
2
 
17
- </head>
18
- <body id="top" class="module">
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
19
6
 
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../index.html">Home</a>
25
- <a href="../index.html#classes">Classes</a>
26
- <a href="../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
7
+ <title>module StructuredWarnings::Test - structured_warnings</title>
30
8
 
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../lib/structured_warnings/test/assertions_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/structured_warnings/test/assertions.rb">lib/structured_warnings/test/assertions.rb</a></li>
39
-
40
- <li><a href="../lib/structured_warnings/test/warner_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
41
- class="thickbox" title="lib/structured_warnings/test/warner.rb">lib/structured_warnings/test/warner.rb</a></li>
42
-
43
- </ul>
44
- </div>
45
- </div>
46
-
47
-
48
- </div>
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ </script>
49
12
 
50
- <div id="class-metadata">
51
-
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
52
15
 
53
-
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
54
18
 
55
-
56
- <!-- Namespace Contents -->
57
- <div id="namespace-list-section" class="section">
58
- <h3 class="section-header">Namespace</h3>
59
- <ul class="link-list">
60
-
61
- <li><span class="type">MODULE</span> <a href="Test/Assertions.html">StructuredWarnings::Test::Assertions</a></li>
62
-
63
- <li><span class="type">CLASS</span> <a href="Test/Warner.html">StructuredWarnings::Test::Warner</a></li>
64
-
65
- </ul>
66
- </div>
67
-
68
19
 
69
-
70
20
 
71
-
72
- </div>
21
+ <body id="top" role="document" class="module">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
73
28
 
74
- <div id="project-metadata">
75
-
76
-
77
- <div id="fileindex-section" class="section project-section">
78
- <h3 class="section-header">Files</h3>
79
- <ul>
80
-
81
- <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
82
-
83
- </ul>
84
- </div>
85
-
86
-
87
- <div id="classindex-section" class="section project-section">
88
- <h3 class="section-header">Class/Module Index
89
- <span class="search-toggle"><img src="../images/find.png"
90
- height="16" width="16" alt="[+]"
91
- title="show/hide quicksearch" /></span></h3>
92
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
93
- <fieldset>
94
- <legend>Quicksearch</legend>
95
- <input type="text" name="quicksearch" value=""
96
- class="quicksearch-field" />
97
- </fieldset>
98
- </form>
99
-
100
- <ul class="link-list">
101
-
102
- <li><a href="../StructuredWarnings.html">StructuredWarnings</a></li>
103
-
104
- <li><a href="../StructuredWarnings/ClassMethods.html">StructuredWarnings::ClassMethods</a></li>
105
-
106
- <li><a href="../StructuredWarnings/Kernel.html">StructuredWarnings::Kernel</a></li>
107
-
108
- <li><a href="../StructuredWarnings/Test.html">StructuredWarnings::Test</a></li>
109
-
110
- <li><a href="../StructuredWarnings/Test/Assertions.html">StructuredWarnings::Test::Assertions</a></li>
111
-
112
- <li><a href="../StructuredWarnings/Test/Warner.html">StructuredWarnings::Test::Warner</a></li>
113
-
114
- <li><a href="../StructuredWarnings/Warner.html">StructuredWarnings::Warner</a></li>
115
-
116
- <li><a href="../Warning.html">Warning</a></li>
117
-
118
- <li><a href="../Warning/ClassMethods.html">Warning::ClassMethods</a></li>
119
-
120
- <li><a href="../DeprecatedMethodWarning.html">DeprecatedMethodWarning</a></li>
121
-
122
- <li><a href="../DeprecatedSignatureWarning.html">DeprecatedSignatureWarning</a></li>
123
-
124
- <li><a href="../DeprecationWarning.html">DeprecationWarning</a></li>
125
-
126
- <li><a href="../Dynamic.html">Dynamic</a></li>
127
-
128
- <li><a href="../Object.html">Object</a></li>
129
-
130
- <li><a href="../StandardWarning.html">StandardWarning</a></li>
131
-
132
- </ul>
133
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
134
- </div>
135
-
136
-
137
- </div>
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
31
+ <a href="../table_of_contents.html#classes">Classes</a>
32
+ <a href="../table_of_contents.html#methods">Methods</a>
138
33
  </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
139
44
 
140
- <div id="documentation">
141
- <h1 class="module">StructuredWarnings::Test</h1>
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
142
50
 
143
- <div id="description" class="description">
144
-
145
- <p>This module ecapsulates all extensions to support <tt>test/unit</tt>.</p>
51
+ </div>
146
52
 
147
- </div><!-- description -->
53
+
148
54
 
55
+ <div id="class-metadata">
56
+
57
+
149
58
 
150
59
 
151
60
 
152
- <div id="5Buntitled-5D" class="documentation-section">
153
-
61
+ </div>
62
+ </nav>
154
63
 
155
-
64
+ <main role="main" aria-labelledby="module-StructuredWarnings::Test">
65
+ <h1 id="module-StructuredWarnings::Test" class="module">
66
+ module StructuredWarnings::Test
67
+ </h1>
156
68
 
157
-
69
+ <section class="description">
70
+
71
+ <p>This module ecapsulates all extensions to support <code>test/unit</code>.</p>
158
72
 
159
-
73
+ </section>
160
74
 
161
- <!-- Methods -->
162
-
163
- </div><!-- 5Buntitled-5D -->
164
75
 
76
+
77
+
78
+ <section id="5Buntitled-5D" class="documentation-section">
79
+
165
80
 
166
- </div><!-- documentation -->
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+ </section>
89
+ </main>
167
90
 
168
- <div id="validator-badges">
169
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
170
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
171
- Rdoc Generator</a> 2</small>.</p>
172
- </div>
173
91
 
174
- </body>
175
- </html>
92
+ <footer id="validator-badges" role="contentinfo">
93
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
94
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
95
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
96
+ </footer>
176
97
 
@@ -1,214 +1,162 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Module: StructuredWarnings::Test::Assertions</title>
9
-
10
- <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
1
+ <!DOCTYPE html>
16
2
 
17
- </head>
18
- <body id="top" class="module">
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
19
6
 
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../../index.html">Home</a>
25
- <a href="../../index.html#classes">Classes</a>
26
- <a href="../../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
7
+ <title>module StructuredWarnings::Test::Assertions - structured_warnings</title>
30
8
 
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../../lib/structured_warnings/test/assertions_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/structured_warnings/test/assertions.rb">lib/structured_warnings/test/assertions.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../../";
11
+ </script>
43
12
 
44
-
45
- </div>
13
+ <script src="../../js/jquery.js"></script>
14
+ <script src="../../js/darkfish.js"></script>
46
15
 
47
- <div id="class-metadata">
48
-
16
+ <link href="../../css/fonts.css" rel="stylesheet">
17
+ <link href="../../css/rdoc.css" rel="stylesheet">
49
18
 
50
-
51
19
 
52
-
53
20
 
54
-
55
- <!-- Method Quickref -->
56
- <div id="method-list-section" class="section">
57
- <h3 class="section-header">Methods</h3>
58
- <ul class="link-list">
59
-
60
- <li><a href="#method-i-assert_no_warn">#assert_no_warn</a></li>
61
-
62
- <li><a href="#method-i-assert_warn">#assert_warn</a></li>
63
-
64
- </ul>
65
- </div>
66
-
21
+ <body id="top" role="document" class="module">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../../index.html" rel="home">Home</a>
27
+ </h2>
67
28
 
68
-
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../../table_of_contents.html#pages">Pages</a>
31
+ <a href="../../table_of_contents.html#classes">Classes</a>
32
+ <a href="../../table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
69
43
  </div>
70
44
 
71
- <div id="project-metadata">
72
-
73
-
74
- <div id="fileindex-section" class="section project-section">
75
- <h3 class="section-header">Files</h3>
76
- <ul>
77
-
78
- <li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
79
-
80
- </ul>
81
- </div>
82
-
83
-
84
- <div id="classindex-section" class="section project-section">
85
- <h3 class="section-header">Class/Module Index
86
- <span class="search-toggle"><img src="../../images/find.png"
87
- height="16" width="16" alt="[+]"
88
- title="show/hide quicksearch" /></span></h3>
89
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
90
- <fieldset>
91
- <legend>Quicksearch</legend>
92
- <input type="text" name="quicksearch" value=""
93
- class="quicksearch-field" />
94
- </fieldset>
95
- </form>
96
-
97
- <ul class="link-list">
98
-
99
- <li><a href="../../StructuredWarnings.html">StructuredWarnings</a></li>
100
-
101
- <li><a href="../../StructuredWarnings/ClassMethods.html">StructuredWarnings::ClassMethods</a></li>
102
-
103
- <li><a href="../../StructuredWarnings/Kernel.html">StructuredWarnings::Kernel</a></li>
104
-
105
- <li><a href="../../StructuredWarnings/Test.html">StructuredWarnings::Test</a></li>
106
-
107
- <li><a href="../../StructuredWarnings/Test/Assertions.html">StructuredWarnings::Test::Assertions</a></li>
108
-
109
- <li><a href="../../StructuredWarnings/Test/Warner.html">StructuredWarnings::Test::Warner</a></li>
110
-
111
- <li><a href="../../StructuredWarnings/Warner.html">StructuredWarnings::Warner</a></li>
112
-
113
- <li><a href="../../Warning.html">Warning</a></li>
114
-
115
- <li><a href="../../Warning/ClassMethods.html">Warning::ClassMethods</a></li>
116
-
117
- <li><a href="../../DeprecatedMethodWarning.html">DeprecatedMethodWarning</a></li>
118
-
119
- <li><a href="../../DeprecatedSignatureWarning.html">DeprecatedSignatureWarning</a></li>
120
-
121
- <li><a href="../../DeprecationWarning.html">DeprecationWarning</a></li>
122
-
123
- <li><a href="../../Dynamic.html">Dynamic</a></li>
124
-
125
- <li><a href="../../Object.html">Object</a></li>
126
-
127
- <li><a href="../../StandardWarning.html">StandardWarning</a></li>
128
-
129
- </ul>
130
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
131
- </div>
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
132
50
 
133
-
134
- </div>
135
51
  </div>
136
52
 
137
- <div id="documentation">
138
- <h1 class="module">StructuredWarnings::Test::Assertions</h1>
53
+
139
54
 
140
- <div id="description" class="description">
141
-
142
- </div><!-- description -->
55
+ <div id="class-metadata">
56
+
57
+
58
+
59
+
60
+ <!-- Method Quickref -->
61
+ <div id="method-list-section" class="nav-section">
62
+ <h3>Methods</h3>
143
63
 
64
+ <ul class="link-list" role="directory">
144
65
 
66
+ <li ><a href="#method-i-assert_no_warn">#assert_no_warn</a>
145
67
 
68
+ <li ><a href="#method-i-assert_warn">#assert_warn</a>
146
69
 
147
- <div id="5Buntitled-5D" class="documentation-section">
148
-
70
+ </ul>
71
+ </div>
149
72
 
150
-
73
+ </div>
74
+ </nav>
151
75
 
152
-
76
+ <main role="main" aria-labelledby="module-StructuredWarnings::Test::Assertions">
77
+ <h1 id="module-StructuredWarnings::Test::Assertions" class="module">
78
+ module StructuredWarnings::Test::Assertions
79
+ </h1>
153
80
 
154
-
81
+ <section class="description">
82
+
83
+ </section>
155
84
 
156
- <!-- Methods -->
157
-
158
- <div id="public-instance-method-details" class="method-section section">
159
- <h3 class="section-header">Public Instance Methods</h3>
85
+
86
+
87
+
88
+ <section id="5Buntitled-5D" class="documentation-section">
89
+
160
90
 
161
-
162
- <div id="assert_no_warn-method" class="method-detail ">
163
- <a name="method-i-assert_no_warn"></a>
91
+
164
92
 
93
+
94
+
95
+
96
+
97
+
98
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
99
+ <header>
100
+ <h3>Public Instance Methods</h3>
101
+ </header>
102
+
103
+
104
+ <div id="method-i-assert_no_warn" class="method-detail ">
105
+
106
+
107
+ <div class="method-heading">
108
+ <span class="method-callseq">
109
+ assert_no_warn(message = nil) {|| ...}
110
+ </span>
165
111
 
112
+ <span class="method-click-advice">click to toggle source</span>
166
113
 
167
- <div class="method-heading">
168
- <span class="method-callseq">assert_no_warn(message = nil) {|| ...}</span>
169
-
170
- <span class="method-click-advice">click to toggle source</span>
171
-
172
- </div>
173
-
174
- <div class="method-heading">
175
- <span class="method-callseq">assert_no_warn(warning_class, message) {|| ...}</span>
176
-
177
- </div>
178
-
179
- <div class="method-heading">
180
- <span class="method-callseq">assert_no_warn(warning_instance) {|| ...}</span>
181
-
182
- </div>
114
+ </div>
115
+
116
+ <div class="method-heading">
117
+ <span class="method-callseq">
118
+ assert_no_warn(warning_class, message) {|| ...}
119
+ </span>
183
120
 
121
+ </div>
122
+
123
+ <div class="method-heading">
124
+ <span class="method-callseq">
125
+ assert_no_warn(warning_instance) {|| ...}
126
+ </span>
184
127
 
128
+ </div>
129
+
130
+
185
131
 
186
- <div class="method-description">
187
-
188
- <p>Asserts that the given warning was not emmitted. It may be restricted to a
132
+ <div class="method-description">
133
+
134
+ <p>Asserts that the given warning was not emmitted. It may be restricted to a
189
135
  certain subtree of warnings and/or message.</p>
190
136
 
191
- <pre>def foo
192
- warn DeprecatedMethodWarning, &quot;used foo, use bar instead&quot;
193
- bar
194
- end
137
+ <pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-identifier">foo</span>
138
+ <span class="ruby-identifier">warn</span> <span class="ruby-constant">DeprecatedMethodWarning</span>, <span class="ruby-string">&quot;used foo, use bar instead&quot;</span>
139
+ <span class="ruby-identifier">bar</span>
140
+ <span class="ruby-keyword">end</span>
195
141
 
196
- assert_no_warn(StandardWarning) { foo } # passes
142
+ <span class="ruby-identifier">assert_no_warn</span>(<span class="ruby-constant">StandardWarning</span>) { <span class="ruby-identifier">foo</span> } <span class="ruby-comment"># passes</span>
197
143
 
198
- assert_no_warn(DeprecationWarning) { foo } # fails
199
- assert_no_warn() { foo } # fails</pre>
144
+ <span class="ruby-identifier">assert_no_warn</span>(<span class="ruby-constant">DeprecationWarning</span>) { <span class="ruby-identifier">foo</span> } <span class="ruby-comment"># fails</span>
145
+ <span class="ruby-identifier">assert_no_warn</span>() { <span class="ruby-identifier">foo</span> } <span class="ruby-comment"># fails</span>
146
+ </pre>
200
147
 
201
- <p>See <a href="Assertions.html#method-i-assert_warn">assert_warn</a> for more
202
- examples.</p>
148
+ <p>See <a href="Assertions.html#method-i-assert_warn">#assert_warn</a> for
149
+ more examples.</p>
203
150
 
204
- <p><b>Note</b>: It is currently not possible to add a custom failure message.</p>
205
-
151
+ <p><strong>Note</strong>: It is currently not possible to add a custom failure
152
+ message.</p>
153
+
154
+
206
155
 
207
-
208
- <div class="method-source-code" id="assert_no_warn-source">
209
- <pre>
210
- <span class="ruby-comment"># File lib/structured_warnings/test/assertions.rb, line 26</span>
211
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">assert_no_warn</span>(*<span class="ruby-identifier">args</span>)
156
+
157
+ <div class="method-source-code" id="assert_no_warn-source">
158
+ <pre><span class="ruby-comment"># File lib/structured_warnings/test/assertions.rb, line 26</span>
159
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">assert_no_warn</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
212
160
  <span class="ruby-identifier">warning</span>, <span class="ruby-identifier">message</span> = <span class="ruby-identifier">parse_arguments</span>(<span class="ruby-identifier">args</span>)
213
161
 
214
162
  <span class="ruby-identifier">w</span> = <span class="ruby-constant">StructuredWarnings</span><span class="ruby-operator">::</span><span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Warner</span>.<span class="ruby-identifier">new</span>
@@ -219,71 +167,77 @@ examples.</p>
219
167
  <span class="ruby-operator">!</span><span class="ruby-identifier">w</span>.<span class="ruby-identifier">warned?</span>(<span class="ruby-identifier">warning</span>, <span class="ruby-identifier">message</span>)
220
168
  <span class="ruby-keyword">end</span>
221
169
  <span class="ruby-keyword">end</span></pre>
222
- </div><!-- assert_no_warn-source -->
223
-
224
170
  </div>
225
-
226
171
 
172
+ </div>
227
173
 
228
-
229
- </div><!-- assert_no_warn-method -->
174
+
230
175
 
231
-
232
- <div id="assert_warn-method" class="method-detail ">
233
- <a name="method-i-assert_warn"></a>
176
+
177
+ </div>
234
178
 
179
+
180
+ <div id="method-i-assert_warn" class="method-detail ">
181
+
182
+
183
+ <div class="method-heading">
184
+ <span class="method-callseq">
185
+ assert_warn(message = nil) {|| ...}
186
+ </span>
235
187
 
188
+ <span class="method-click-advice">click to toggle source</span>
236
189
 
237
- <div class="method-heading">
238
- <span class="method-callseq">assert_warn(message = nil) {|| ...}</span>
239
-
240
- <span class="method-click-advice">click to toggle source</span>
241
-
242
- </div>
243
-
244
- <div class="method-heading">
245
- <span class="method-callseq">assert_warn(warning_class, message) {|| ...}</span>
246
-
247
- </div>
248
-
249
- <div class="method-heading">
250
- <span class="method-callseq">assert_warn(warning_instance) {|| ...}</span>
251
-
252
- </div>
190
+ </div>
191
+
192
+ <div class="method-heading">
193
+ <span class="method-callseq">
194
+ assert_warn(warning_class, message) {|| ...}
195
+ </span>
253
196
 
197
+ </div>
198
+
199
+ <div class="method-heading">
200
+ <span class="method-callseq">
201
+ assert_warn(warning_instance) {|| ...}
202
+ </span>
254
203
 
204
+ </div>
205
+
206
+
255
207
 
256
- <div class="method-description">
257
-
258
- <p>Asserts that the given warning was emmitted. It may be restricted to a
208
+ <div class="method-description">
209
+
210
+ <p>Asserts that the given warning was emmitted. It may be restricted to a
259
211
  certain subtree of warnings and/or message.</p>
260
212
 
261
- <pre>def foo
262
- warn DeprecatedMethodWarning, &quot;used foo, use bar instead&quot;
263
- bar
264
- end
265
-
266
- # passes
267
- assert_warn(DeprecatedMethodWarning) { foo }
268
- assert_warn(DeprecationWarning) { foo }
269
- assert_warn() { foo }
270
- assert_warn(Warning, &quot;used foo, use bar instead&quot;) { foo }
271
- assert_warn(Warning, /use bar/) { foo }
272
- assert_warn(Warning.new(&quot;used foo, use bar instead&quot;)) { foo }
273
-
274
- # fails
275
- assert_warn(StandardWarning) { foo }
276
- assert_warn(Warning, /deprecated/) { foo }
277
- assert_warn(Warning.new) { foo }</pre>
278
-
279
- <p><b>Note</b>: It is currently not possible to add a custom failure message.</p>
280
-
281
-
282
-
283
- <div class="method-source-code" id="assert_warn-source">
284
- <pre>
285
- <span class="ruby-comment"># File lib/structured_warnings/test/assertions.rb, line 65</span>
286
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">assert_warn</span>(*<span class="ruby-identifier">args</span>)
213
+ <pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-identifier">foo</span>
214
+ <span class="ruby-identifier">warn</span> <span class="ruby-constant">DeprecatedMethodWarning</span>, <span class="ruby-string">&quot;used foo, use bar instead&quot;</span>
215
+ <span class="ruby-identifier">bar</span>
216
+ <span class="ruby-keyword">end</span>
217
+
218
+ <span class="ruby-comment"># passes</span>
219
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">DeprecatedMethodWarning</span>) { <span class="ruby-identifier">foo</span> }
220
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">DeprecationWarning</span>) { <span class="ruby-identifier">foo</span> }
221
+ <span class="ruby-identifier">assert_warn</span>() { <span class="ruby-identifier">foo</span> }
222
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">Warning</span>, <span class="ruby-string">&quot;used foo, use bar instead&quot;</span>) { <span class="ruby-identifier">foo</span> }
223
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">Warning</span>, <span class="ruby-regexp">/use bar/</span>) { <span class="ruby-identifier">foo</span> }
224
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">Warning</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;used foo, use bar instead&quot;</span>)) { <span class="ruby-identifier">foo</span> }
225
+
226
+ <span class="ruby-comment"># fails</span>
227
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">StandardWarning</span>) { <span class="ruby-identifier">foo</span> }
228
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">Warning</span>, <span class="ruby-regexp">/deprecated/</span>) { <span class="ruby-identifier">foo</span> }
229
+ <span class="ruby-identifier">assert_warn</span>(<span class="ruby-constant">Warning</span>.<span class="ruby-identifier">new</span>) { <span class="ruby-identifier">foo</span> }
230
+ </pre>
231
+
232
+ <p><strong>Note</strong>: It is currently not possible to add a custom failure
233
+ message.</p>
234
+
235
+
236
+
237
+
238
+ <div class="method-source-code" id="assert_warn-source">
239
+ <pre><span class="ruby-comment"># File lib/structured_warnings/test/assertions.rb, line 65</span>
240
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">assert_warn</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
287
241
  <span class="ruby-identifier">warning</span>, <span class="ruby-identifier">message</span> = <span class="ruby-identifier">parse_arguments</span>(<span class="ruby-identifier">args</span>)
288
242
 
289
243
  <span class="ruby-identifier">w</span> = <span class="ruby-constant">StructuredWarnings</span><span class="ruby-operator">::</span><span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Warner</span>.<span class="ruby-identifier">new</span>
@@ -294,29 +248,25 @@ assert_warn(Warning.new) { foo }</pre>
294
248
  <span class="ruby-identifier">w</span>.<span class="ruby-identifier">warned?</span>(<span class="ruby-identifier">warning</span>, <span class="ruby-identifier">message</span>)
295
249
  <span class="ruby-keyword">end</span>
296
250
  <span class="ruby-keyword">end</span></pre>
297
- </div><!-- assert_warn-source -->
298
-
299
251
  </div>
300
-
301
252
 
253
+ </div>
302
254
 
303
-
304
- </div><!-- assert_warn-method -->
255
+
256
+
257
+
258
+ </div>
305
259
 
306
-
307
- </div><!-- public-instance-method-details -->
308
260
 
309
- </div><!-- 5Buntitled-5D -->
261
+ </section>
310
262
 
263
+ </section>
264
+ </main>
311
265
 
312
- </div><!-- documentation -->
313
-
314
- <div id="validator-badges">
315
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
316
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
317
- Rdoc Generator</a> 2</small>.</p>
318
- </div>
319
266
 
320
- </body>
321
- </html>
267
+ <footer id="validator-badges" role="contentinfo">
268
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
269
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
270
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
271
+ </footer>
322
272