elabs_matchers 0.0.7 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +3 -6
- data/{development.txt → development.md} +2 -2
- data/doc/ElabsMatchers/Helpers/Fixtures.html +46 -46
- data/doc/ElabsMatchers/Helpers/NormalizeKeys.html +45 -45
- data/doc/ElabsMatchers/Helpers/ReloadRecord.html +45 -45
- data/doc/ElabsMatchers/Helpers/SelectYearAndMonth.html +48 -48
- data/doc/ElabsMatchers/Helpers.html +40 -40
- data/doc/ElabsMatchers/Matchers/{Allow/AllowMatcher.html → BeValidWith/BeValidWithMatcher.html} +150 -85
- data/doc/ElabsMatchers/Matchers/BeValidWith.html +229 -0
- data/doc/ElabsMatchers/Matchers/ContainHash/ContainHashMatcher.html +80 -67
- data/doc/ElabsMatchers/Matchers/ContainHash.html +51 -51
- data/doc/ElabsMatchers/Matchers/HaveAttribute/HaveAttributeMatcher.html +108 -95
- data/doc/ElabsMatchers/Matchers/HaveAttribute.html +49 -49
- data/doc/ElabsMatchers/Matchers/HaveFields/HaveFieldsMatcher.html +103 -90
- data/doc/ElabsMatchers/Matchers/HaveFields.html +50 -50
- data/doc/ElabsMatchers/Matchers/HaveFlash/HaveFlashMatcher.html +108 -95
- data/doc/ElabsMatchers/Matchers/HaveFlash.html +57 -57
- data/doc/ElabsMatchers/Matchers/HaveFormErrorsOn/HaveFormErrorsOnMatcher.html +110 -97
- data/doc/ElabsMatchers/Matchers/HaveFormErrorsOn.html +49 -49
- data/doc/ElabsMatchers/Matchers/HaveHeader/HaveHeaderMatcher.html +103 -90
- data/doc/ElabsMatchers/Matchers/HaveHeader.html +49 -49
- data/doc/ElabsMatchers/Matchers/HaveImage/HaveImageMatcher.html +104 -91
- data/doc/ElabsMatchers/Matchers/HaveImage.html +49 -49
- data/doc/ElabsMatchers/Matchers/OnlyInclude/OnlyIncludeMatcher.html +79 -66
- data/doc/ElabsMatchers/Matchers/OnlyInclude.html +50 -50
- data/doc/ElabsMatchers/Matchers/Persist/PersistMatcher.html +134 -69
- data/doc/ElabsMatchers/Matchers/Persist.html +49 -49
- data/doc/ElabsMatchers/Matchers.html +42 -42
- data/doc/ElabsMatchers.html +143 -144
- data/doc/_index.html +35 -52
- data/doc/class_list.html +25 -27
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +262 -91
- data/doc/file.README.html +91 -87
- data/doc/file_list.html +27 -26
- data/doc/frames.html +10 -21
- data/doc/index.html +91 -87
- data/doc/js/app.js +106 -72
- data/doc/js/full_list.js +170 -127
- data/doc/method_list.html +456 -505
- data/doc/top-level-namespace.html +36 -38
- data/elabs_matchers.gemspec +2 -2
- data/history.txt +11 -0
- data/lib/elabs_matchers/helpers/normalize_keys.rb +1 -1
- data/lib/elabs_matchers/helpers/select_year_and_month.rb +1 -0
- data/lib/elabs_matchers/matchers/be_valid_with.rb +5 -10
- data/lib/elabs_matchers/matchers/contain_hash.rb +4 -2
- data/lib/elabs_matchers/matchers/have_attribute.rb +5 -2
- data/lib/elabs_matchers/matchers/have_fields.rb +5 -2
- data/lib/elabs_matchers/matchers/have_flash.rb +5 -2
- data/lib/elabs_matchers/matchers/have_form_errors_on.rb +5 -2
- data/lib/elabs_matchers/matchers/have_header.rb +5 -2
- data/lib/elabs_matchers/matchers/have_image.rb +5 -2
- data/lib/elabs_matchers/matchers/only_include.rb +14 -2
- data/lib/elabs_matchers/matchers/persist.rb +8 -2
- data/lib/elabs_matchers/version.rb +1 -1
- data/lib/elabs_matchers.rb +0 -1
- data/spec/elabs_matchers/matchers/only_include_spec.rb +13 -0
- data/spec/elabs_matchers/matchers/persist_spec.rb +1 -1
- data/spec/spec_helper.rb +7 -0
- metadata +8 -29
- data/doc/Cucumber.html +0 -116
- data/doc/ElabsMatchers/Cucumber/Common.html +0 -145
- data/doc/ElabsMatchers/Cucumber.html +0 -108
- data/doc/ElabsMatchers/Helpers/Capybara.html +0 -241
- data/doc/ElabsMatchers/Helpers/Common.html +0 -213
- data/doc/ElabsMatchers/Helpers/Orm.html +0 -289
- data/doc/ElabsMatchers/Helpers/Session.html +0 -497
- data/doc/ElabsMatchers/Matchers/Allow.html +0 -229
- data/doc/ElabsMatchers/Matchers/Capybara/Common.html +0 -1159
- data/doc/ElabsMatchers/Matchers/Capybara.html +0 -108
- data/doc/ElabsMatchers/Matchers/HaveTableRow/HaveTableRowMatcher.html +0 -654
- data/doc/ElabsMatchers/Matchers/HaveTableRow.html +0 -236
- data/doc/ElabsMatchers/Matchers/Rspec/Allow.html +0 -98
- data/doc/ElabsMatchers/Matchers/Rspec/Common.html +0 -332
- data/doc/ElabsMatchers/Matchers/Rspec/Orm.html +0 -231
- data/doc/ElabsMatchers/Matchers/Rspec.html +0 -110
- data/doc/ElabsMatchers/Orm/Post.html +0 -1041
- data/doc/ElabsMatchers/Orm.html +0 -108
- data/lib/elabs_matchers/matchers/have_table_row.rb +0 -124
- data/spec/elabs_matchers/matchers/have_table_row_spec.rb +0 -119
@@ -1,23 +1,22 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Module: ElabsMatchers::Matchers::HaveFlash
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.12
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "ElabsMatchers::Matchers::HaveFlash";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,61 +27,61 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (H)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span> » <span class='title'><span class='object_link'><a href="../Matchers.html" title="ElabsMatchers::Matchers (module)">Matchers</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">HaveFlash</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: ElabsMatchers::Matchers::HaveFlash
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Matchers::HaveFlash
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
71
69
|
|
72
|
-
<dl class="box">
|
73
70
|
|
74
71
|
|
75
|
-
|
76
72
|
|
77
|
-
|
78
73
|
|
79
74
|
|
75
|
+
|
80
76
|
|
81
|
-
|
82
|
-
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/elabs_matchers/matchers/have_flash.rb</dd>
|
82
|
+
</dl>
|
83
83
|
|
84
|
-
</
|
85
|
-
<div class="clear"></div>
|
84
|
+
</div>
|
86
85
|
|
87
86
|
<h2>Defined Under Namespace</h2>
|
88
87
|
<p class="children">
|
@@ -104,7 +103,7 @@
|
|
104
103
|
|
105
104
|
<h2>
|
106
105
|
Instance Method Summary
|
107
|
-
<small
|
106
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
108
107
|
</h2>
|
109
108
|
|
110
109
|
<ul class="summary">
|
@@ -112,7 +111,7 @@
|
|
112
111
|
<li class="public ">
|
113
112
|
<span class="summary_signature">
|
114
113
|
|
115
|
-
<a href="#have_flash_alert-instance_method" title="#have_flash_alert (instance method)"
|
114
|
+
<a href="#have_flash_alert-instance_method" title="#have_flash_alert (instance method)">#<strong>have_flash_alert</strong>(message) ⇒ Object </a>
|
116
115
|
|
117
116
|
|
118
117
|
|
@@ -136,7 +135,7 @@
|
|
136
135
|
<li class="public ">
|
137
136
|
<span class="summary_signature">
|
138
137
|
|
139
|
-
<a href="#have_flash_notice-instance_method" title="#have_flash_notice (instance method)"
|
138
|
+
<a href="#have_flash_notice-instance_method" title="#have_flash_notice (instance method)">#<strong>have_flash_notice</strong>(message) ⇒ Object </a>
|
140
139
|
|
141
140
|
|
142
141
|
|
@@ -169,7 +168,7 @@
|
|
169
168
|
<div class="method_details first">
|
170
169
|
<h3 class="signature first" id="have_flash_alert-instance_method">
|
171
170
|
|
172
|
-
|
171
|
+
#<strong>have_flash_alert</strong>(message) ⇒ <tt>Object</tt>
|
173
172
|
|
174
173
|
|
175
174
|
|
@@ -180,7 +179,7 @@
|
|
180
179
|
|
181
180
|
<p>Asserts if the supplied flash alert exists or not</p>
|
182
181
|
|
183
|
-
<p>Example: page.should have_flash_alert(
|
182
|
+
<p>Example: page.should have_flash_alert(“Error”)</p>
|
184
183
|
|
185
184
|
|
186
185
|
</div>
|
@@ -214,15 +213,15 @@
|
|
214
213
|
<pre class="lines">
|
215
214
|
|
216
215
|
|
217
|
-
|
218
|
-
|
219
|
-
|
216
|
+
64
|
217
|
+
65
|
218
|
+
66</pre>
|
220
219
|
</td>
|
221
220
|
<td>
|
222
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_flash.rb', line
|
221
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_flash.rb', line 64</span>
|
223
222
|
|
224
223
|
<span class='kw'>def</span> <span class='id identifier rubyid_have_flash_alert'>have_flash_alert</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
225
|
-
<span class='const'>HaveFlashMatcher</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:alert</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
224
|
+
<span class='const'><span class='object_link'><a href="HaveFlash/HaveFlashMatcher.html" title="ElabsMatchers::Matchers::HaveFlash::HaveFlashMatcher (class)">HaveFlashMatcher</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:alert</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
226
225
|
<span class='kw'>end</span></pre>
|
227
226
|
</td>
|
228
227
|
</tr>
|
@@ -232,7 +231,7 @@
|
|
232
231
|
<div class="method_details ">
|
233
232
|
<h3 class="signature " id="have_flash_notice-instance_method">
|
234
233
|
|
235
|
-
|
234
|
+
#<strong>have_flash_notice</strong>(message) ⇒ <tt>Object</tt>
|
236
235
|
|
237
236
|
|
238
237
|
|
@@ -243,7 +242,7 @@
|
|
243
242
|
|
244
243
|
<p>Asserts if the supplied flash notice exists or not</p>
|
245
244
|
|
246
|
-
<p>Example: page.should have_flash_notice(
|
245
|
+
<p>Example: page.should have_flash_notice(“Success”)</p>
|
247
246
|
|
248
247
|
|
249
248
|
</div>
|
@@ -277,15 +276,15 @@
|
|
277
276
|
<pre class="lines">
|
278
277
|
|
279
278
|
|
280
|
-
|
281
|
-
|
282
|
-
|
279
|
+
51
|
280
|
+
52
|
281
|
+
53</pre>
|
283
282
|
</td>
|
284
283
|
<td>
|
285
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_flash.rb', line
|
284
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_flash.rb', line 51</span>
|
286
285
|
|
287
286
|
<span class='kw'>def</span> <span class='id identifier rubyid_have_flash_notice'>have_flash_notice</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
288
|
-
<span class='const'>HaveFlashMatcher</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:notice</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
287
|
+
<span class='const'><span class='object_link'><a href="HaveFlash/HaveFlashMatcher.html" title="ElabsMatchers::Matchers::HaveFlash::HaveFlashMatcher (class)">HaveFlashMatcher</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:notice</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
289
288
|
<span class='kw'>end</span></pre>
|
290
289
|
</td>
|
291
290
|
</tr>
|
@@ -296,11 +295,12 @@
|
|
296
295
|
|
297
296
|
</div>
|
298
297
|
|
299
|
-
|
300
|
-
Generated on Wed
|
298
|
+
<div id="footer">
|
299
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
301
300
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
302
|
-
0.
|
301
|
+
0.9.12 (ruby-2.4.1).
|
303
302
|
</div>
|
304
303
|
|
304
|
+
</div>
|
305
305
|
</body>
|
306
306
|
</html>
|
@@ -1,23 +1,22 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: ElabsMatchers::Matchers::HaveFormErrorsOn::HaveFormErrorsOnMatcher
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.12
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "ElabsMatchers::Matchers::HaveFormErrorsOn::HaveFormErrorsOnMatcher";
|
19
19
|
relpath = '../../../';
|
20
|
-
framesUrl = "../../../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../../_index.html">Index (H)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../../ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span> » <span class='title'><span class='object_link'><a href="../../Matchers.html" title="ElabsMatchers::Matchers (module)">Matchers</a></span></span> » <span class='title'><span class='object_link'><a href="../HaveFormErrorsOn.html" title="ElabsMatchers::Matchers::HaveFormErrorsOn (module)">HaveFormErrorsOn</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">HaveFormErrorsOnMatcher</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../../../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: ElabsMatchers::Matchers::HaveFormErrorsOn::HaveFormErrorsOnMatcher
|
62
|
+
<div id="content"><h1>Class: ElabsMatchers::Matchers::HaveFormErrorsOn::HaveFormErrorsOnMatcher
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Struct</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -85,33 +81,37 @@
|
|
85
81
|
</ul>
|
86
82
|
<a href="#" class="inheritanceTree">show all</a>
|
87
83
|
|
88
|
-
|
89
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
90
88
|
|
91
89
|
|
92
|
-
|
93
90
|
|
94
|
-
|
95
91
|
|
96
92
|
|
93
|
+
|
94
|
+
|
95
|
+
|
97
96
|
|
98
|
-
|
99
|
-
<
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/elabs_matchers/matchers/have_form_errors_on.rb</dd>
|
100
|
+
</dl>
|
100
101
|
|
101
|
-
</
|
102
|
-
<div class="clear"></div>
|
102
|
+
</div>
|
103
103
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
107
|
|
108
|
-
<h2>Instance Attribute Summary <small
|
108
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
109
109
|
<ul class="summary">
|
110
110
|
|
111
111
|
<li class="public ">
|
112
112
|
<span class="summary_signature">
|
113
113
|
|
114
|
-
<a href="#field-instance_method" title="#field (instance method)"
|
114
|
+
<a href="#field-instance_method" title="#field (instance method)">#<strong>field</strong> ⇒ Object </a>
|
115
115
|
|
116
116
|
|
117
117
|
|
@@ -138,7 +138,7 @@
|
|
138
138
|
<li class="public ">
|
139
139
|
<span class="summary_signature">
|
140
140
|
|
141
|
-
<a href="#message-instance_method" title="#message (instance method)"
|
141
|
+
<a href="#message-instance_method" title="#message (instance method)">#<strong>message</strong> ⇒ Object </a>
|
142
142
|
|
143
143
|
|
144
144
|
|
@@ -165,7 +165,7 @@
|
|
165
165
|
<li class="public ">
|
166
166
|
<span class="summary_signature">
|
167
167
|
|
168
|
-
<a href="#page-instance_method" title="#page (instance method)"
|
168
|
+
<a href="#page-instance_method" title="#page (instance method)">#<strong>page</strong> ⇒ Object </a>
|
169
169
|
|
170
170
|
|
171
171
|
|
@@ -199,7 +199,7 @@
|
|
199
199
|
|
200
200
|
<h2>
|
201
201
|
Instance Method Summary
|
202
|
-
<small
|
202
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
203
203
|
</h2>
|
204
204
|
|
205
205
|
<ul class="summary">
|
@@ -207,7 +207,7 @@
|
|
207
207
|
<li class="public ">
|
208
208
|
<span class="summary_signature">
|
209
209
|
|
210
|
-
<a href="#does_not_match%3F-instance_method" title="#does_not_match? (instance method)"
|
210
|
+
<a href="#does_not_match%3F-instance_method" title="#does_not_match? (instance method)">#<strong>does_not_match?</strong>(page) ⇒ Boolean </a>
|
211
211
|
|
212
212
|
|
213
213
|
|
@@ -229,10 +229,12 @@
|
|
229
229
|
<li class="public ">
|
230
230
|
<span class="summary_signature">
|
231
231
|
|
232
|
-
<a href="#
|
232
|
+
<a href="#failure_message-instance_method" title="#failure_message (instance method)">#<strong>failure_message</strong> ⇒ Object </a>
|
233
233
|
|
234
234
|
|
235
235
|
|
236
|
+
(also: #failure_message_for_should)
|
237
|
+
|
236
238
|
</span>
|
237
239
|
|
238
240
|
|
@@ -251,10 +253,12 @@
|
|
251
253
|
<li class="public ">
|
252
254
|
<span class="summary_signature">
|
253
255
|
|
254
|
-
<a href="#
|
256
|
+
<a href="#failure_message_when_negated-instance_method" title="#failure_message_when_negated (instance method)">#<strong>failure_message_when_negated</strong> ⇒ Object </a>
|
255
257
|
|
256
258
|
|
257
259
|
|
260
|
+
(also: #failure_message_for_should_not)
|
261
|
+
|
258
262
|
</span>
|
259
263
|
|
260
264
|
|
@@ -273,7 +277,7 @@
|
|
273
277
|
<li class="public ">
|
274
278
|
<span class="summary_signature">
|
275
279
|
|
276
|
-
<a href="#matches%3F-instance_method" title="#matches? (instance method)"
|
280
|
+
<a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(page) ⇒ Boolean </a>
|
277
281
|
|
278
282
|
|
279
283
|
|
@@ -305,7 +309,7 @@
|
|
305
309
|
<div class="method_details first">
|
306
310
|
<h3 class="signature first" id="field-instance_method">
|
307
311
|
|
308
|
-
|
312
|
+
#<strong>field</strong> ⇒ <tt>Object</tt>
|
309
313
|
|
310
314
|
|
311
315
|
|
@@ -346,12 +350,12 @@
|
|
346
350
|
<pre class="lines">
|
347
351
|
|
348
352
|
|
349
|
-
|
350
|
-
|
351
|
-
|
353
|
+
8
|
354
|
+
9
|
355
|
+
10</pre>
|
352
356
|
</td>
|
353
357
|
<td>
|
354
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line
|
358
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 8</span>
|
355
359
|
|
356
360
|
<span class='kw'>def</span> <span class='id identifier rubyid_field'>field</span>
|
357
361
|
<span class='ivar'>@field</span>
|
@@ -366,7 +370,7 @@
|
|
366
370
|
<div class="method_details ">
|
367
371
|
<h3 class="signature " id="message-instance_method">
|
368
372
|
|
369
|
-
|
373
|
+
#<strong>message</strong> ⇒ <tt>Object</tt>
|
370
374
|
|
371
375
|
|
372
376
|
|
@@ -407,12 +411,12 @@
|
|
407
411
|
<pre class="lines">
|
408
412
|
|
409
413
|
|
410
|
-
|
411
|
-
|
412
|
-
|
414
|
+
8
|
415
|
+
9
|
416
|
+
10</pre>
|
413
417
|
</td>
|
414
418
|
<td>
|
415
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line
|
419
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 8</span>
|
416
420
|
|
417
421
|
<span class='kw'>def</span> <span class='id identifier rubyid_message'>message</span>
|
418
422
|
<span class='ivar'>@message</span>
|
@@ -427,7 +431,7 @@
|
|
427
431
|
<div class="method_details ">
|
428
432
|
<h3 class="signature " id="page-instance_method">
|
429
433
|
|
430
|
-
|
434
|
+
#<strong>page</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
431
435
|
|
432
436
|
|
433
437
|
|
@@ -450,12 +454,12 @@
|
|
450
454
|
<pre class="lines">
|
451
455
|
|
452
456
|
|
453
|
-
|
454
|
-
|
455
|
-
|
457
|
+
9
|
458
|
+
10
|
459
|
+
11</pre>
|
456
460
|
</td>
|
457
461
|
<td>
|
458
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line
|
462
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 9</span>
|
459
463
|
|
460
464
|
<span class='kw'>def</span> <span class='id identifier rubyid_page'>page</span>
|
461
465
|
<span class='ivar'>@page</span>
|
@@ -475,7 +479,7 @@
|
|
475
479
|
<div class="method_details first">
|
476
480
|
<h3 class="signature first" id="does_not_match?-instance_method">
|
477
481
|
|
478
|
-
|
482
|
+
#<strong>does_not_match?</strong>(page) ⇒ <tt>Boolean</tt>
|
479
483
|
|
480
484
|
|
481
485
|
|
@@ -509,13 +513,13 @@
|
|
509
513
|
<pre class="lines">
|
510
514
|
|
511
515
|
|
512
|
-
17
|
513
|
-
18
|
514
516
|
19
|
515
|
-
20
|
517
|
+
20
|
518
|
+
21
|
519
|
+
22</pre>
|
516
520
|
</td>
|
517
521
|
<td>
|
518
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line
|
522
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 19</span>
|
519
523
|
|
520
524
|
<span class='kw'>def</span> <span class='id identifier rubyid_does_not_match?'>does_not_match?</span><span class='lparen'>(</span><span class='id identifier rubyid_page'>page</span><span class='rparen'>)</span>
|
521
525
|
<span class='ivar'>@page</span> <span class='op'>=</span> <span class='id identifier rubyid_page'>page</span>
|
@@ -527,12 +531,16 @@
|
|
527
531
|
</div>
|
528
532
|
|
529
533
|
<div class="method_details ">
|
530
|
-
<h3 class="signature " id="
|
534
|
+
<h3 class="signature " id="failure_message-instance_method">
|
531
535
|
|
532
|
-
|
536
|
+
#<strong>failure_message</strong> ⇒ <tt>Object</tt>
|
533
537
|
|
534
538
|
|
535
539
|
|
540
|
+
<span class="aliases">Also known as:
|
541
|
+
<span class="names"><span id='failure_message_for_should-instance_method'>failure_message_for_should</span></span>
|
542
|
+
</span>
|
543
|
+
|
536
544
|
|
537
545
|
|
538
546
|
</h3><table class="source_code">
|
@@ -541,8 +549,6 @@
|
|
541
549
|
<pre class="lines">
|
542
550
|
|
543
551
|
|
544
|
-
22
|
545
|
-
23
|
546
552
|
24
|
547
553
|
25
|
548
554
|
26
|
@@ -552,21 +558,23 @@
|
|
552
558
|
30
|
553
559
|
31
|
554
560
|
32
|
555
|
-
33
|
561
|
+
33
|
562
|
+
34
|
563
|
+
35</pre>
|
556
564
|
</td>
|
557
565
|
<td>
|
558
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line
|
566
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 24</span>
|
559
567
|
|
560
|
-
<span class='kw'>def</span> <span class='id identifier
|
568
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_failure_message'>failure_message</span>
|
561
569
|
<span class='kw'>if</span> <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_has_field?'>has_field?</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
562
570
|
<span class='id identifier rubyid_error'>error</span> <span class='op'>=</span> <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_find_field'>find_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_all'>all</span><span class='lparen'>(</span><span class='id identifier rubyid_selector_type'>selector_type</span><span class='comma'>,</span> <span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
563
571
|
<span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_error'>error</span>
|
564
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected field
|
572
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected field '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_field'>field</span><span class='embexpr_end'>}</span><span class='tstring_content'>' to have an error, but it didn't.</span><span class='tstring_end'>"</span></span>
|
565
573
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_error'>error</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>!=</span> <span class='id identifier rubyid_message'>message</span>
|
566
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected error message on </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_field'>field</span><span class='
|
574
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected error message on </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_field'>field</span><span class='embexpr_end'>}</span><span class='tstring_content'> to be '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_content'>' but was '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_error'>error</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>'.</span><span class='tstring_end'>"</span></span>
|
567
575
|
<span class='kw'>end</span>
|
568
576
|
<span class='kw'>else</span>
|
569
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No such field </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_field'>field</span><span class='
|
577
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No such field </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_field'>field</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span>
|
570
578
|
<span class='kw'>end</span>
|
571
579
|
<span class='kw'>end</span></pre>
|
572
580
|
</td>
|
@@ -575,12 +583,16 @@
|
|
575
583
|
</div>
|
576
584
|
|
577
585
|
<div class="method_details ">
|
578
|
-
<h3 class="signature " id="
|
586
|
+
<h3 class="signature " id="failure_message_when_negated-instance_method">
|
579
587
|
|
580
|
-
|
588
|
+
#<strong>failure_message_when_negated</strong> ⇒ <tt>Object</tt>
|
581
589
|
|
582
590
|
|
583
591
|
|
592
|
+
<span class="aliases">Also known as:
|
593
|
+
<span class="names"><span id='failure_message_for_should_not-instance_method'>failure_message_for_should_not</span></span>
|
594
|
+
</span>
|
595
|
+
|
584
596
|
|
585
597
|
|
586
598
|
</h3><table class="source_code">
|
@@ -589,15 +601,15 @@
|
|
589
601
|
<pre class="lines">
|
590
602
|
|
591
603
|
|
592
|
-
|
593
|
-
|
594
|
-
|
604
|
+
38
|
605
|
+
39
|
606
|
+
40</pre>
|
595
607
|
</td>
|
596
608
|
<td>
|
597
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line
|
609
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 38</span>
|
598
610
|
|
599
|
-
<span class='kw'>def</span> <span class='id identifier
|
600
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected error message on
|
611
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_failure_message_when_negated'>failure_message_when_negated</span>
|
612
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected error message on '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_field'>field</span><span class='embexpr_end'>}</span><span class='tstring_content'>' not to be '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_content'>' but it was.</span><span class='tstring_end'>"</span></span>
|
601
613
|
<span class='kw'>end</span></pre>
|
602
614
|
</td>
|
603
615
|
</tr>
|
@@ -607,7 +619,7 @@
|
|
607
619
|
<div class="method_details ">
|
608
620
|
<h3 class="signature " id="matches?-instance_method">
|
609
621
|
|
610
|
-
|
622
|
+
#<strong>matches?</strong>(page) ⇒ <tt>Boolean</tt>
|
611
623
|
|
612
624
|
|
613
625
|
|
@@ -641,16 +653,16 @@
|
|
641
653
|
<pre class="lines">
|
642
654
|
|
643
655
|
|
644
|
-
9
|
645
|
-
10
|
646
656
|
11
|
647
657
|
12
|
648
658
|
13
|
649
659
|
14
|
650
|
-
15
|
660
|
+
15
|
661
|
+
16
|
662
|
+
17</pre>
|
651
663
|
</td>
|
652
664
|
<td>
|
653
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line
|
665
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/have_form_errors_on.rb', line 11</span>
|
654
666
|
|
655
667
|
<span class='kw'>def</span> <span class='id identifier rubyid_matches?'>matches?</span><span class='lparen'>(</span><span class='id identifier rubyid_page'>page</span><span class='rparen'>)</span>
|
656
668
|
<span class='ivar'>@page</span> <span class='op'>=</span> <span class='id identifier rubyid_page'>page</span>
|
@@ -668,11 +680,12 @@
|
|
668
680
|
|
669
681
|
</div>
|
670
682
|
|
671
|
-
|
672
|
-
Generated on Wed
|
683
|
+
<div id="footer">
|
684
|
+
Generated on Wed Mar 14 09:56:37 2018 by
|
673
685
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
674
|
-
0.
|
686
|
+
0.9.12 (ruby-2.4.1).
|
675
687
|
</div>
|
676
688
|
|
689
|
+
</div>
|
677
690
|
</body>
|
678
691
|
</html>
|