phone_number_validator 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,235 +1,235 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class PhoneNumberValidatorTest - Phone Number Validator</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "./";
11
- var index_rel_prefix = "./";
12
- </script>
13
-
14
- <script src="./js/jquery.js"></script>
15
- <script src="./js/darkfish.js"></script>
16
-
17
- <link href="./css/fonts.css" rel="stylesheet">
18
- <link href="./css/rdoc.css" rel="stylesheet">
19
-
20
-
21
-
22
- <body id="top" role="document" class="class">
23
- <nav role="navigation">
24
- <div id="project-navigation">
25
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
- <h2>
27
- <a href="./index.html" rel="home">Home</a>
28
- </h2>
29
-
30
- <div id="table-of-contents-navigation">
31
- <a href="./table_of_contents.html#pages">Pages</a>
32
- <a href="./table_of_contents.html#classes">Classes</a>
33
- <a href="./table_of_contents.html#methods">Methods</a>
34
- </div>
35
- </div>
36
-
37
- <div id="search-section" role="search" class="project-section initially-hidden">
38
- <form action="#" method="get" accept-charset="utf-8">
39
- <div id="search-field-wrapper">
40
- <input id="search-field" role="combobox" aria-label="Search"
41
- aria-autocomplete="list" aria-controls="search-results"
42
- type="text" name="search" placeholder="Search" spellcheck="false"
43
- title="Type to search, Up and Down to navigate, Enter to load">
44
- </div>
45
-
46
- <ul id="search-results" aria-label="Search Results"
47
- aria-busy="false" aria-expanded="false"
48
- aria-atomic="false" class="initially-hidden"></ul>
49
- </form>
50
- </div>
51
-
52
- </div>
53
-
54
-
55
-
56
- <div id="class-metadata">
57
-
58
- <div id="parent-class-section" class="nav-section">
59
- <h3>Parent</h3>
60
-
61
-
62
- <p class="link">Test::Unit::TestCase
63
-
64
- </div>
65
-
66
-
67
-
68
- <!-- Method Quickref -->
69
- <div id="method-list-section" class="nav-section">
70
- <h3>Methods</h3>
71
-
72
- <ul class="link-list" role="directory">
73
-
74
- <li ><a href="#method-i-test_invalid_phone_number">#test_invalid_phone_number</a>
75
-
76
- <li ><a href="#method-i-test_no_phone_number">#test_no_phone_number</a>
77
-
78
- <li ><a href="#method-i-test_valid_phone_number">#test_valid_phone_number</a>
79
-
80
- </ul>
81
- </div>
82
-
83
- </div>
84
- </nav>
85
-
86
- <main role="main" aria-labelledby="class-PhoneNumberValidatorTest">
87
- <h1 id="class-PhoneNumberValidatorTest" class="class">
88
- class PhoneNumberValidatorTest
89
- </h1>
90
-
91
- <section class="description">
92
-
93
- <p>This class respresents the testing-unit for this gem app</p>
94
-
95
- <p><strong>Inherits from:</strong></p>
96
-
97
- <pre class="ruby"><span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCase</span>
98
- </pre>
99
-
100
- </section>
101
-
102
-
103
- <section id="5Buntitled-5D" class="documentation-section">
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
114
- <header>
115
- <h3>Public Instance Methods</h3>
116
- </header>
117
-
118
-
119
- <div id="method-i-test_invalid_phone_number" class="method-detail ">
120
-
121
- <div class="method-heading">
122
- <span class="method-name">test_invalid_phone_number</span><span
123
- class="method-args">()</span>
124
-
125
- <span class="method-click-advice">click to toggle source</span>
126
-
127
- </div>
128
-
129
-
130
- <div class="method-description">
131
-
132
- <p>This test inputs an invalid phone number and expects the output to be
133
- <strong>false</strong></p>
134
-
135
-
136
-
137
-
138
- <div class="method-source-code" id="test_invalid_phone_number-source">
139
- <pre><span class="ruby-comment"># File test/test_phone_number_validator.rb, line 20</span>
140
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_invalid_phone_number</span>
141
- <span class="ruby-identifier">assert_equal</span> <span class="ruby-keyword">false</span>,
142
- <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;94643823637337&#39;</span>)
143
- <span class="ruby-keyword">end</span></pre>
144
- </div>
145
-
146
- </div>
147
-
148
-
149
-
150
-
151
- </div>
152
-
153
-
154
- <div id="method-i-test_no_phone_number" class="method-detail ">
155
-
156
- <div class="method-heading">
157
- <span class="method-name">test_no_phone_number</span><span
158
- class="method-args">()</span>
159
-
160
- <span class="method-click-advice">click to toggle source</span>
161
-
162
- </div>
163
-
164
-
165
- <div class="method-description">
166
-
167
- <p>This test inputs no phone number and expectst the output to be
168
- <strong>:nil</strong></p>
169
-
170
-
171
-
172
-
173
- <div class="method-source-code" id="test_no_phone_number-source">
174
- <pre><span class="ruby-comment"># File test/test_phone_number_validator.rb, line 27</span>
175
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_no_phone_number</span>
176
- <span class="ruby-identifier">assert_equal</span> <span class="ruby-value">:nil</span>,
177
- <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;&#39;</span>)
178
- <span class="ruby-keyword">end</span></pre>
179
- </div>
180
-
181
- </div>
182
-
183
-
184
-
185
-
186
- </div>
187
-
188
-
189
- <div id="method-i-test_valid_phone_number" class="method-detail ">
190
-
191
- <div class="method-heading">
192
- <span class="method-name">test_valid_phone_number</span><span
193
- class="method-args">()</span>
194
-
195
- <span class="method-click-advice">click to toggle source</span>
196
-
197
- </div>
198
-
199
-
200
- <div class="method-description">
201
-
202
- <p>This test inputs a valid phone number and expects the output to be
203
- <strong>true</strong></p>
204
-
205
-
206
-
207
-
208
- <div class="method-source-code" id="test_valid_phone_number-source">
209
- <pre><span class="ruby-comment"># File test/test_phone_number_validator.rb, line 13</span>
210
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_valid_phone_number</span>
211
- <span class="ruby-identifier">assert_equal</span> <span class="ruby-keyword">true</span>,
212
- <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;+1 (949) 355-6244 ext. 198842&#39;</span>)
213
- <span class="ruby-keyword">end</span></pre>
214
- </div>
215
-
216
- </div>
217
-
218
-
219
-
220
-
221
- </div>
222
-
223
-
224
- </section>
225
-
226
- </section>
227
- </main>
228
-
229
-
230
- <footer id="validator-badges" role="contentinfo">
231
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
232
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
233
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
234
- </footer>
235
-
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class PhoneNumberValidatorTest - Phone Number Validator</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+ <body id="top" role="document" class="class">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="class-metadata">
57
+
58
+ <div id="parent-class-section" class="nav-section">
59
+ <h3>Parent</h3>
60
+
61
+
62
+ <p class="link">Test::Unit::TestCase
63
+
64
+ </div>
65
+
66
+
67
+
68
+ <!-- Method Quickref -->
69
+ <div id="method-list-section" class="nav-section">
70
+ <h3>Methods</h3>
71
+
72
+ <ul class="link-list" role="directory">
73
+
74
+ <li ><a href="#method-i-test_invalid_phone_number">#test_invalid_phone_number</a>
75
+
76
+ <li ><a href="#method-i-test_no_phone_number">#test_no_phone_number</a>
77
+
78
+ <li ><a href="#method-i-test_valid_phone_number">#test_valid_phone_number</a>
79
+
80
+ </ul>
81
+ </div>
82
+
83
+ </div>
84
+ </nav>
85
+
86
+ <main role="main" aria-labelledby="class-PhoneNumberValidatorTest">
87
+ <h1 id="class-PhoneNumberValidatorTest" class="class">
88
+ class PhoneNumberValidatorTest
89
+ </h1>
90
+
91
+ <section class="description">
92
+
93
+ <p>This class respresents the testing-unit for this gem app</p>
94
+
95
+ <p><strong>Inherits from:</strong></p>
96
+
97
+ <pre class="ruby"><span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCase</span>
98
+ </pre>
99
+
100
+ </section>
101
+
102
+
103
+ <section id="5Buntitled-5D" class="documentation-section">
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
114
+ <header>
115
+ <h3>Public Instance Methods</h3>
116
+ </header>
117
+
118
+
119
+ <div id="method-i-test_invalid_phone_number" class="method-detail ">
120
+
121
+ <div class="method-heading">
122
+ <span class="method-name">test_invalid_phone_number</span><span
123
+ class="method-args">()</span>
124
+
125
+ <span class="method-click-advice">click to toggle source</span>
126
+
127
+ </div>
128
+
129
+
130
+ <div class="method-description">
131
+
132
+ <p>This test inputs an invalid phone number and expects the output to be
133
+ <strong>false</strong></p>
134
+
135
+
136
+
137
+
138
+ <div class="method-source-code" id="test_invalid_phone_number-source">
139
+ <pre><span class="ruby-comment"># File test/test_phone_number_validator.rb, line 20</span>
140
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_invalid_phone_number</span>
141
+ <span class="ruby-identifier">assert_equal</span> <span class="ruby-keyword">false</span>,
142
+ <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;94643823637337&#39;</span>)
143
+ <span class="ruby-keyword">end</span></pre>
144
+ </div>
145
+
146
+ </div>
147
+
148
+
149
+
150
+
151
+ </div>
152
+
153
+
154
+ <div id="method-i-test_no_phone_number" class="method-detail ">
155
+
156
+ <div class="method-heading">
157
+ <span class="method-name">test_no_phone_number</span><span
158
+ class="method-args">()</span>
159
+
160
+ <span class="method-click-advice">click to toggle source</span>
161
+
162
+ </div>
163
+
164
+
165
+ <div class="method-description">
166
+
167
+ <p>This test inputs no phone number and expectst the output to be
168
+ <strong>:nil</strong></p>
169
+
170
+
171
+
172
+
173
+ <div class="method-source-code" id="test_no_phone_number-source">
174
+ <pre><span class="ruby-comment"># File test/test_phone_number_validator.rb, line 27</span>
175
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_no_phone_number</span>
176
+ <span class="ruby-identifier">assert_equal</span> <span class="ruby-value">:nil</span>,
177
+ <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;&#39;</span>)
178
+ <span class="ruby-keyword">end</span></pre>
179
+ </div>
180
+
181
+ </div>
182
+
183
+
184
+
185
+
186
+ </div>
187
+
188
+
189
+ <div id="method-i-test_valid_phone_number" class="method-detail ">
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">test_valid_phone_number</span><span
193
+ class="method-args">()</span>
194
+
195
+ <span class="method-click-advice">click to toggle source</span>
196
+
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+ <p>This test inputs a valid phone number and expects the output to be
203
+ <strong>true</strong></p>
204
+
205
+
206
+
207
+
208
+ <div class="method-source-code" id="test_valid_phone_number-source">
209
+ <pre><span class="ruby-comment"># File test/test_phone_number_validator.rb, line 13</span>
210
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_valid_phone_number</span>
211
+ <span class="ruby-identifier">assert_equal</span> <span class="ruby-keyword">true</span>,
212
+ <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;+1 (949) 355-6244 ext. 198842&#39;</span>)
213
+ <span class="ruby-keyword">end</span></pre>
214
+ </div>
215
+
216
+ </div>
217
+
218
+
219
+
220
+
221
+ </div>
222
+
223
+
224
+ </section>
225
+
226
+ </section>
227
+ </main>
228
+
229
+
230
+ <footer id="validator-badges" role="contentinfo">
231
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
232
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.4.
233
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
234
+ </footer>
235
+