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::Persist
|
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::Persist";
|
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 (P)</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">Persist</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::Persist
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Matchers::Persist
|
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/persist.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="#persist-instance_method" title="#persist (instance method)"
|
114
|
+
<a href="#persist-instance_method" title="#persist (instance method)">#<strong>persist</strong>(attribute, value) ⇒ Object </a>
|
116
115
|
|
117
116
|
|
118
117
|
|
@@ -145,7 +144,7 @@
|
|
145
144
|
<div class="method_details first">
|
146
145
|
<h3 class="signature first" id="persist-instance_method">
|
147
146
|
|
148
|
-
|
147
|
+
#<strong>persist</strong>(attribute, value) ⇒ <tt>Object</tt>
|
149
148
|
|
150
149
|
|
151
150
|
|
@@ -156,7 +155,7 @@
|
|
156
155
|
|
157
156
|
<p>Asserts if an assigned value persistes in the database.</p>
|
158
157
|
|
159
|
-
<p>Example: post.should persist(:title,
|
158
|
+
<p>Example: post.should persist(:title, “Blog post”)</p>
|
160
159
|
|
161
160
|
|
162
161
|
</div>
|
@@ -206,15 +205,15 @@
|
|
206
205
|
<pre class="lines">
|
207
206
|
|
208
207
|
|
209
|
-
|
210
|
-
|
211
|
-
|
208
|
+
43
|
209
|
+
44
|
210
|
+
45</pre>
|
212
211
|
</td>
|
213
212
|
<td>
|
214
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/persist.rb', line
|
213
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/persist.rb', line 43</span>
|
215
214
|
|
216
215
|
<span class='kw'>def</span> <span class='id identifier rubyid_persist'>persist</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
217
|
-
<span class='const'>PersistMatcher</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
216
|
+
<span class='const'><span class='object_link'><a href="Persist/PersistMatcher.html" title="ElabsMatchers::Matchers::Persist::PersistMatcher (class)">PersistMatcher</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
218
217
|
<span class='kw'>end</span></pre>
|
219
218
|
</td>
|
220
219
|
</tr>
|
@@ -225,11 +224,12 @@
|
|
225
224
|
|
226
225
|
</div>
|
227
226
|
|
228
|
-
|
229
|
-
Generated on Wed
|
227
|
+
<div id="footer">
|
228
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
230
229
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
231
|
-
0.
|
230
|
+
0.9.12 (ruby-2.4.1).
|
232
231
|
</div>
|
233
232
|
|
233
|
+
</div>
|
234
234
|
</body>
|
235
235
|
</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
|
Module: ElabsMatchers::Matchers
|
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";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,69 +27,69 @@
|
|
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 (M)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Matchers</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
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Matchers
|
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
|
-
|
83
|
-
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/elabs_matchers/matchers/persist.rb<span class="defines">,<br />
|
82
|
+
lib/elabs_matchers/matchers/have_flash.rb,<br /> lib/elabs_matchers/matchers/have_image.rb,<br /> lib/elabs_matchers/matchers/have_fields.rb,<br /> lib/elabs_matchers/matchers/have_header.rb,<br /> lib/elabs_matchers/matchers/contain_hash.rb,<br /> lib/elabs_matchers/matchers/only_include.rb,<br /> lib/elabs_matchers/matchers/be_valid_with.rb,<br /> lib/elabs_matchers/matchers/have_attribute.rb,<br /> lib/elabs_matchers/matchers/have_form_errors_on.rb</span>
|
84
83
|
</dd>
|
84
|
+
</dl>
|
85
85
|
|
86
|
-
</
|
87
|
-
<div class="clear"></div>
|
86
|
+
</div>
|
88
87
|
|
89
88
|
<h2>Defined Under Namespace</h2>
|
90
89
|
<p class="children">
|
91
90
|
|
92
91
|
|
93
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Matchers/
|
92
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Matchers/BeValidWith.html" title="ElabsMatchers::Matchers::BeValidWith (module)">BeValidWith</a></span>, <span class='object_link'><a href="Matchers/ContainHash.html" title="ElabsMatchers::Matchers::ContainHash (module)">ContainHash</a></span>, <span class='object_link'><a href="Matchers/HaveAttribute.html" title="ElabsMatchers::Matchers::HaveAttribute (module)">HaveAttribute</a></span>, <span class='object_link'><a href="Matchers/HaveFields.html" title="ElabsMatchers::Matchers::HaveFields (module)">HaveFields</a></span>, <span class='object_link'><a href="Matchers/HaveFlash.html" title="ElabsMatchers::Matchers::HaveFlash (module)">HaveFlash</a></span>, <span class='object_link'><a href="Matchers/HaveFormErrorsOn.html" title="ElabsMatchers::Matchers::HaveFormErrorsOn (module)">HaveFormErrorsOn</a></span>, <span class='object_link'><a href="Matchers/HaveHeader.html" title="ElabsMatchers::Matchers::HaveHeader (module)">HaveHeader</a></span>, <span class='object_link'><a href="Matchers/HaveImage.html" title="ElabsMatchers::Matchers::HaveImage (module)">HaveImage</a></span>, <span class='object_link'><a href="Matchers/OnlyInclude.html" title="ElabsMatchers::Matchers::OnlyInclude (module)">OnlyInclude</a></span>, <span class='object_link'><a href="Matchers/Persist.html" title="ElabsMatchers::Matchers::Persist (module)">Persist</a></span>
|
94
93
|
|
95
94
|
|
96
95
|
|
@@ -107,11 +106,12 @@
|
|
107
106
|
|
108
107
|
</div>
|
109
108
|
|
110
|
-
|
111
|
-
Generated on Wed
|
109
|
+
<div id="footer">
|
110
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
112
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.
|
112
|
+
0.9.12 (ruby-2.4.1).
|
114
113
|
</div>
|
115
114
|
|
115
|
+
</div>
|
116
116
|
</body>
|
117
117
|
</html>
|
data/doc/ElabsMatchers.html
CHANGED
@@ -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
|
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";
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,63 +27,63 @@
|
|
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 (E)</a> »
|
35
40
|
|
36
41
|
|
37
42
|
<span class="title">ElabsMatchers</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
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers
|
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
|
+
|
76
|
+
|
77
|
+
|
80
78
|
|
81
|
-
|
82
|
-
<
|
83
|
-
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/elabs_matchers.rb<span class="defines">,<br />
|
82
|
+
lib/elabs_matchers/version.rb,<br /> lib/elabs_matchers/helpers/fixtures.rb,<br /> lib/elabs_matchers/matchers/persist.rb,<br /> lib/elabs_matchers/matchers/have_flash.rb,<br /> lib/elabs_matchers/matchers/have_image.rb,<br /> lib/elabs_matchers/matchers/have_fields.rb,<br /> lib/elabs_matchers/matchers/have_header.rb,<br /> lib/elabs_matchers/helpers/reload_record.rb,<br /> lib/elabs_matchers/matchers/contain_hash.rb,<br /> lib/elabs_matchers/matchers/only_include.rb,<br /> lib/elabs_matchers/helpers/normalize_keys.rb,<br /> lib/elabs_matchers/matchers/be_valid_with.rb,<br /> lib/elabs_matchers/matchers/have_attribute.rb,<br /> lib/elabs_matchers/matchers/have_form_errors_on.rb,<br /> lib/elabs_matchers/helpers/select_year_and_month.rb</span>
|
84
83
|
</dd>
|
84
|
+
</dl>
|
85
85
|
|
86
|
-
</
|
87
|
-
<div class="clear"></div>
|
86
|
+
</div>
|
88
87
|
|
89
88
|
<h2>Defined Under Namespace</h2>
|
90
89
|
<p class="children">
|
@@ -98,27 +97,25 @@
|
|
98
97
|
</p>
|
99
98
|
|
100
99
|
<h2>Constant Summary</h2>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
</dl>
|
110
|
-
|
100
|
+
<dl class="constants">
|
101
|
+
|
102
|
+
<dt id="VERSION-constant" class="">VERSION =
|
103
|
+
|
104
|
+
</dt>
|
105
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>2.0.0</span><span class='tstring_end'>"</span></span></pre></dd>
|
106
|
+
|
107
|
+
</dl>
|
111
108
|
|
112
109
|
|
113
110
|
|
114
111
|
|
115
|
-
<h2>Class Attribute Summary <small
|
112
|
+
<h2>Class Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
116
113
|
<ul class="summary">
|
117
114
|
|
118
115
|
<li class="public ">
|
119
116
|
<span class="summary_signature">
|
120
117
|
|
121
|
-
<a href="#attribute_selector-class_method" title="attribute_selector (class method)"
|
118
|
+
<a href="#attribute_selector-class_method" title="attribute_selector (class method)">.<strong>attribute_selector</strong> ⇒ Object </a>
|
122
119
|
|
123
120
|
|
124
121
|
|
@@ -145,7 +142,7 @@
|
|
145
142
|
<li class="public ">
|
146
143
|
<span class="summary_signature">
|
147
144
|
|
148
|
-
<a href="#attribute_selector_type-class_method" title="attribute_selector_type (class method)"
|
145
|
+
<a href="#attribute_selector_type-class_method" title="attribute_selector_type (class method)">.<strong>attribute_selector_type</strong> ⇒ Object </a>
|
149
146
|
|
150
147
|
|
151
148
|
|
@@ -172,7 +169,7 @@
|
|
172
169
|
<li class="public ">
|
173
170
|
<span class="summary_signature">
|
174
171
|
|
175
|
-
<a href="#flash_alert_selector-class_method" title="flash_alert_selector (class method)"
|
172
|
+
<a href="#flash_alert_selector-class_method" title="flash_alert_selector (class method)">.<strong>flash_alert_selector</strong> ⇒ Object </a>
|
176
173
|
|
177
174
|
|
178
175
|
|
@@ -199,7 +196,7 @@
|
|
199
196
|
<li class="public ">
|
200
197
|
<span class="summary_signature">
|
201
198
|
|
202
|
-
<a href="#flash_alert_selector_type-class_method" title="flash_alert_selector_type (class method)"
|
199
|
+
<a href="#flash_alert_selector_type-class_method" title="flash_alert_selector_type (class method)">.<strong>flash_alert_selector_type</strong> ⇒ Object </a>
|
203
200
|
|
204
201
|
|
205
202
|
|
@@ -226,7 +223,7 @@
|
|
226
223
|
<li class="public ">
|
227
224
|
<span class="summary_signature">
|
228
225
|
|
229
|
-
<a href="#flash_notice_selector-class_method" title="flash_notice_selector (class method)"
|
226
|
+
<a href="#flash_notice_selector-class_method" title="flash_notice_selector (class method)">.<strong>flash_notice_selector</strong> ⇒ Object </a>
|
230
227
|
|
231
228
|
|
232
229
|
|
@@ -253,7 +250,7 @@
|
|
253
250
|
<li class="public ">
|
254
251
|
<span class="summary_signature">
|
255
252
|
|
256
|
-
<a href="#flash_notice_selector_type-class_method" title="flash_notice_selector_type (class method)"
|
253
|
+
<a href="#flash_notice_selector_type-class_method" title="flash_notice_selector_type (class method)">.<strong>flash_notice_selector_type</strong> ⇒ Object </a>
|
257
254
|
|
258
255
|
|
259
256
|
|
@@ -280,7 +277,7 @@
|
|
280
277
|
<li class="public ">
|
281
278
|
<span class="summary_signature">
|
282
279
|
|
283
|
-
<a href="#form_errors_on_selector-class_method" title="form_errors_on_selector (class method)"
|
280
|
+
<a href="#form_errors_on_selector-class_method" title="form_errors_on_selector (class method)">.<strong>form_errors_on_selector</strong> ⇒ Object </a>
|
284
281
|
|
285
282
|
|
286
283
|
|
@@ -307,7 +304,7 @@
|
|
307
304
|
<li class="public ">
|
308
305
|
<span class="summary_signature">
|
309
306
|
|
310
|
-
<a href="#header_selector-class_method" title="header_selector (class method)"
|
307
|
+
<a href="#header_selector-class_method" title="header_selector (class method)">.<strong>header_selector</strong> ⇒ Object </a>
|
311
308
|
|
312
309
|
|
313
310
|
|
@@ -334,7 +331,7 @@
|
|
334
331
|
<li class="public ">
|
335
332
|
<span class="summary_signature">
|
336
333
|
|
337
|
-
<a href="#header_selector_type-class_method" title="header_selector_type (class method)"
|
334
|
+
<a href="#header_selector_type-class_method" title="header_selector_type (class method)">.<strong>header_selector_type</strong> ⇒ Object </a>
|
338
335
|
|
339
336
|
|
340
337
|
|
@@ -361,7 +358,7 @@
|
|
361
358
|
<li class="public ">
|
362
359
|
<span class="summary_signature">
|
363
360
|
|
364
|
-
<a href="#image_selector-class_method" title="image_selector (class method)"
|
361
|
+
<a href="#image_selector-class_method" title="image_selector (class method)">.<strong>image_selector</strong> ⇒ Object </a>
|
365
362
|
|
366
363
|
|
367
364
|
|
@@ -388,7 +385,7 @@
|
|
388
385
|
<li class="public ">
|
389
386
|
<span class="summary_signature">
|
390
387
|
|
391
|
-
<a href="#image_selector_type-class_method" title="image_selector_type (class method)"
|
388
|
+
<a href="#image_selector_type-class_method" title="image_selector_type (class method)">.<strong>image_selector_type</strong> ⇒ Object </a>
|
392
389
|
|
393
390
|
|
394
391
|
|
@@ -415,7 +412,7 @@
|
|
415
412
|
<li class="public ">
|
416
413
|
<span class="summary_signature">
|
417
414
|
|
418
|
-
<a href="#table_row_selector-class_method" title="table_row_selector (class method)"
|
415
|
+
<a href="#table_row_selector-class_method" title="table_row_selector (class method)">.<strong>table_row_selector</strong> ⇒ Object </a>
|
419
416
|
|
420
417
|
|
421
418
|
|
@@ -447,7 +444,7 @@
|
|
447
444
|
|
448
445
|
<h2>
|
449
446
|
Class Method Summary
|
450
|
-
<small
|
447
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
451
448
|
</h2>
|
452
449
|
|
453
450
|
<ul class="summary">
|
@@ -455,7 +452,7 @@
|
|
455
452
|
<li class="public ">
|
456
453
|
<span class="summary_signature">
|
457
454
|
|
458
|
-
<a href="#configure-class_method" title="configure (class method)"
|
455
|
+
<a href="#configure-class_method" title="configure (class method)">.<strong>configure</strong> {|_self| ... } ⇒ Object </a>
|
459
456
|
|
460
457
|
|
461
458
|
|
@@ -479,7 +476,7 @@
|
|
479
476
|
<li class="public ">
|
480
477
|
<span class="summary_signature">
|
481
478
|
|
482
|
-
<a href="#use_default_configuration
|
479
|
+
<a href="#use_default_configuration!-class_method" title="use_default_configuration! (class method)">.<strong>use_default_configuration!</strong> ⇒ Object </a>
|
483
480
|
|
484
481
|
|
485
482
|
|
@@ -512,7 +509,7 @@
|
|
512
509
|
<div class="method_details first">
|
513
510
|
<h3 class="signature first" id="attribute_selector-class_method">
|
514
511
|
|
515
|
-
|
512
|
+
.<strong>attribute_selector</strong> ⇒ <tt>Object</tt>
|
516
513
|
|
517
514
|
|
518
515
|
|
@@ -535,12 +532,12 @@
|
|
535
532
|
<pre class="lines">
|
536
533
|
|
537
534
|
|
535
|
+
29
|
538
536
|
30
|
539
|
-
31
|
540
|
-
32</pre>
|
537
|
+
31</pre>
|
541
538
|
</td>
|
542
539
|
<td>
|
543
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
540
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 29</span>
|
544
541
|
|
545
542
|
<span class='kw'>def</span> <span class='id identifier rubyid_attribute_selector'>attribute_selector</span>
|
546
543
|
<span class='ivar'>@attribute_selector</span>
|
@@ -555,7 +552,7 @@
|
|
555
552
|
<div class="method_details ">
|
556
553
|
<h3 class="signature " id="attribute_selector_type-class_method">
|
557
554
|
|
558
|
-
|
555
|
+
.<strong>attribute_selector_type</strong> ⇒ <tt>Object</tt>
|
559
556
|
|
560
557
|
|
561
558
|
|
@@ -578,12 +575,12 @@
|
|
578
575
|
<pre class="lines">
|
579
576
|
|
580
577
|
|
578
|
+
29
|
581
579
|
30
|
582
|
-
31
|
583
|
-
32</pre>
|
580
|
+
31</pre>
|
584
581
|
</td>
|
585
582
|
<td>
|
586
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
583
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 29</span>
|
587
584
|
|
588
585
|
<span class='kw'>def</span> <span class='id identifier rubyid_attribute_selector_type'>attribute_selector_type</span>
|
589
586
|
<span class='ivar'>@attribute_selector_type</span>
|
@@ -598,7 +595,7 @@
|
|
598
595
|
<div class="method_details ">
|
599
596
|
<h3 class="signature " id="flash_alert_selector-class_method">
|
600
597
|
|
601
|
-
|
598
|
+
.<strong>flash_alert_selector</strong> ⇒ <tt>Object</tt>
|
602
599
|
|
603
600
|
|
604
601
|
|
@@ -621,12 +618,12 @@
|
|
621
618
|
<pre class="lines">
|
622
619
|
|
623
620
|
|
621
|
+
30
|
624
622
|
31
|
625
|
-
32
|
626
|
-
33</pre>
|
623
|
+
32</pre>
|
627
624
|
</td>
|
628
625
|
<td>
|
629
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
626
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 30</span>
|
630
627
|
|
631
628
|
<span class='kw'>def</span> <span class='id identifier rubyid_flash_alert_selector'>flash_alert_selector</span>
|
632
629
|
<span class='ivar'>@flash_alert_selector</span>
|
@@ -641,7 +638,7 @@
|
|
641
638
|
<div class="method_details ">
|
642
639
|
<h3 class="signature " id="flash_alert_selector_type-class_method">
|
643
640
|
|
644
|
-
|
641
|
+
.<strong>flash_alert_selector_type</strong> ⇒ <tt>Object</tt>
|
645
642
|
|
646
643
|
|
647
644
|
|
@@ -664,12 +661,12 @@
|
|
664
661
|
<pre class="lines">
|
665
662
|
|
666
663
|
|
664
|
+
30
|
667
665
|
31
|
668
|
-
32
|
669
|
-
33</pre>
|
666
|
+
32</pre>
|
670
667
|
</td>
|
671
668
|
<td>
|
672
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
669
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 30</span>
|
673
670
|
|
674
671
|
<span class='kw'>def</span> <span class='id identifier rubyid_flash_alert_selector_type'>flash_alert_selector_type</span>
|
675
672
|
<span class='ivar'>@flash_alert_selector_type</span>
|
@@ -684,7 +681,7 @@
|
|
684
681
|
<div class="method_details ">
|
685
682
|
<h3 class="signature " id="flash_notice_selector-class_method">
|
686
683
|
|
687
|
-
|
684
|
+
.<strong>flash_notice_selector</strong> ⇒ <tt>Object</tt>
|
688
685
|
|
689
686
|
|
690
687
|
|
@@ -707,12 +704,12 @@
|
|
707
704
|
<pre class="lines">
|
708
705
|
|
709
706
|
|
707
|
+
30
|
710
708
|
31
|
711
|
-
32
|
712
|
-
33</pre>
|
709
|
+
32</pre>
|
713
710
|
</td>
|
714
711
|
<td>
|
715
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
712
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 30</span>
|
716
713
|
|
717
714
|
<span class='kw'>def</span> <span class='id identifier rubyid_flash_notice_selector'>flash_notice_selector</span>
|
718
715
|
<span class='ivar'>@flash_notice_selector</span>
|
@@ -727,7 +724,7 @@
|
|
727
724
|
<div class="method_details ">
|
728
725
|
<h3 class="signature " id="flash_notice_selector_type-class_method">
|
729
726
|
|
730
|
-
|
727
|
+
.<strong>flash_notice_selector_type</strong> ⇒ <tt>Object</tt>
|
731
728
|
|
732
729
|
|
733
730
|
|
@@ -750,12 +747,12 @@
|
|
750
747
|
<pre class="lines">
|
751
748
|
|
752
749
|
|
750
|
+
30
|
753
751
|
31
|
754
|
-
32
|
755
|
-
33</pre>
|
752
|
+
32</pre>
|
756
753
|
</td>
|
757
754
|
<td>
|
758
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
755
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 30</span>
|
759
756
|
|
760
757
|
<span class='kw'>def</span> <span class='id identifier rubyid_flash_notice_selector_type'>flash_notice_selector_type</span>
|
761
758
|
<span class='ivar'>@flash_notice_selector_type</span>
|
@@ -770,7 +767,7 @@
|
|
770
767
|
<div class="method_details ">
|
771
768
|
<h3 class="signature " id="form_errors_on_selector-class_method">
|
772
769
|
|
773
|
-
|
770
|
+
.<strong>form_errors_on_selector</strong> ⇒ <tt>Object</tt>
|
774
771
|
|
775
772
|
|
776
773
|
|
@@ -793,12 +790,12 @@
|
|
793
790
|
<pre class="lines">
|
794
791
|
|
795
792
|
|
793
|
+
31
|
796
794
|
32
|
797
|
-
33
|
798
|
-
34</pre>
|
795
|
+
33</pre>
|
799
796
|
</td>
|
800
797
|
<td>
|
801
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
798
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 31</span>
|
802
799
|
|
803
800
|
<span class='kw'>def</span> <span class='id identifier rubyid_form_errors_on_selector'>form_errors_on_selector</span>
|
804
801
|
<span class='ivar'>@form_errors_on_selector</span>
|
@@ -813,7 +810,7 @@
|
|
813
810
|
<div class="method_details ">
|
814
811
|
<h3 class="signature " id="header_selector-class_method">
|
815
812
|
|
816
|
-
|
813
|
+
.<strong>header_selector</strong> ⇒ <tt>Object</tt>
|
817
814
|
|
818
815
|
|
819
816
|
|
@@ -836,12 +833,12 @@
|
|
836
833
|
<pre class="lines">
|
837
834
|
|
838
835
|
|
836
|
+
28
|
839
837
|
29
|
840
|
-
30
|
841
|
-
31</pre>
|
838
|
+
30</pre>
|
842
839
|
</td>
|
843
840
|
<td>
|
844
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
841
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 28</span>
|
845
842
|
|
846
843
|
<span class='kw'>def</span> <span class='id identifier rubyid_header_selector'>header_selector</span>
|
847
844
|
<span class='ivar'>@header_selector</span>
|
@@ -856,7 +853,7 @@
|
|
856
853
|
<div class="method_details ">
|
857
854
|
<h3 class="signature " id="header_selector_type-class_method">
|
858
855
|
|
859
|
-
|
856
|
+
.<strong>header_selector_type</strong> ⇒ <tt>Object</tt>
|
860
857
|
|
861
858
|
|
862
859
|
|
@@ -879,12 +876,12 @@
|
|
879
876
|
<pre class="lines">
|
880
877
|
|
881
878
|
|
879
|
+
28
|
882
880
|
29
|
883
|
-
30
|
884
|
-
31</pre>
|
881
|
+
30</pre>
|
885
882
|
</td>
|
886
883
|
<td>
|
887
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
884
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 28</span>
|
888
885
|
|
889
886
|
<span class='kw'>def</span> <span class='id identifier rubyid_header_selector_type'>header_selector_type</span>
|
890
887
|
<span class='ivar'>@header_selector_type</span>
|
@@ -899,7 +896,7 @@
|
|
899
896
|
<div class="method_details ">
|
900
897
|
<h3 class="signature " id="image_selector-class_method">
|
901
898
|
|
902
|
-
|
899
|
+
.<strong>image_selector</strong> ⇒ <tt>Object</tt>
|
903
900
|
|
904
901
|
|
905
902
|
|
@@ -922,12 +919,12 @@
|
|
922
919
|
<pre class="lines">
|
923
920
|
|
924
921
|
|
922
|
+
32
|
925
923
|
33
|
926
|
-
34
|
927
|
-
35</pre>
|
924
|
+
34</pre>
|
928
925
|
</td>
|
929
926
|
<td>
|
930
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
927
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 32</span>
|
931
928
|
|
932
929
|
<span class='kw'>def</span> <span class='id identifier rubyid_image_selector'>image_selector</span>
|
933
930
|
<span class='ivar'>@image_selector</span>
|
@@ -942,7 +939,7 @@
|
|
942
939
|
<div class="method_details ">
|
943
940
|
<h3 class="signature " id="image_selector_type-class_method">
|
944
941
|
|
945
|
-
|
942
|
+
.<strong>image_selector_type</strong> ⇒ <tt>Object</tt>
|
946
943
|
|
947
944
|
|
948
945
|
|
@@ -965,12 +962,12 @@
|
|
965
962
|
<pre class="lines">
|
966
963
|
|
967
964
|
|
965
|
+
32
|
968
966
|
33
|
969
|
-
34
|
970
|
-
35</pre>
|
967
|
+
34</pre>
|
971
968
|
</td>
|
972
969
|
<td>
|
973
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
970
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 32</span>
|
974
971
|
|
975
972
|
<span class='kw'>def</span> <span class='id identifier rubyid_image_selector_type'>image_selector_type</span>
|
976
973
|
<span class='ivar'>@image_selector_type</span>
|
@@ -985,7 +982,7 @@
|
|
985
982
|
<div class="method_details ">
|
986
983
|
<h3 class="signature " id="table_row_selector-class_method">
|
987
984
|
|
988
|
-
|
985
|
+
.<strong>table_row_selector</strong> ⇒ <tt>Object</tt>
|
989
986
|
|
990
987
|
|
991
988
|
|
@@ -1008,12 +1005,12 @@
|
|
1008
1005
|
<pre class="lines">
|
1009
1006
|
|
1010
1007
|
|
1008
|
+
33
|
1011
1009
|
34
|
1012
|
-
35
|
1013
|
-
36</pre>
|
1010
|
+
35</pre>
|
1014
1011
|
</td>
|
1015
1012
|
<td>
|
1016
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
1013
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 33</span>
|
1017
1014
|
|
1018
1015
|
<span class='kw'>def</span> <span class='id identifier rubyid_table_row_selector'>table_row_selector</span>
|
1019
1016
|
<span class='ivar'>@table_row_selector</span>
|
@@ -1033,7 +1030,7 @@
|
|
1033
1030
|
<div class="method_details first">
|
1034
1031
|
<h3 class="signature first" id="configure-class_method">
|
1035
1032
|
|
1036
|
-
|
1033
|
+
.<strong>configure</strong> {|_self| ... } ⇒ <tt>Object</tt>
|
1037
1034
|
|
1038
1035
|
|
1039
1036
|
|
@@ -1045,51 +1042,52 @@
|
|
1045
1042
|
<p>Configure ElabsMatchers to suit your needs. The spec/spec_helper.rb file is
|
1046
1043
|
a good place to put your configurations in.</p>
|
1047
1044
|
|
1048
|
-
<pre class="code ruby"><code><span class='const'>ElabsMatchers</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
1045
|
+
<pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="" title="ElabsMatchers (module)">ElabsMatchers</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
1049
1046
|
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_header_selector'>header_selector</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>//h1</span><span class='tstring_end'>"</span></span>
|
1050
1047
|
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_header_selector_type'>header_selector_type</span> <span class='op'>=</span> <span class='symbol'>:xpath</span>
|
1051
|
-
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_selector'>image_selector</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_src'>src</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>img[src
|
1052
|
-
<span class='kw'>end</span
|
1048
|
+
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_selector'>image_selector</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_src'>src</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>img[src='</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_src'>src</span><span class='embexpr_end'>}</span><span class='tstring_content'>']</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
1049
|
+
<span class='kw'>end</span>
|
1050
|
+
</code></pre>
|
1053
1051
|
|
1054
|
-
<h3>Configurable options</h3>
|
1055
|
-
<dl class="rdoc-list"><dt>header_selctor = String
|
1052
|
+
<h3 id="label-Configurable+options">Configurable options</h3>
|
1053
|
+
<dl class="rdoc-list label-list"><dt>header_selctor = String
|
1056
1054
|
<dd>
|
1057
|
-
<p>The selector to use when finding header tags (Default:
|
1058
|
-
</dd><dt>header_selector_type = Symbol
|
1055
|
+
<p>The selector to use when finding header tags (Default: “h1,h2”)</p>
|
1056
|
+
</dd><dt>header_selector_type = Symbol
|
1059
1057
|
<dd>
|
1060
1058
|
<p>The type of selector to use, :css or :xpath (Default: :css)</p>
|
1061
|
-
</dd><dt>image_selctor = lamda
|
1059
|
+
</dd><dt>image_selctor = lamda
|
1062
1060
|
<dd>
|
1063
1061
|
<p>The selector to use when finding images (Default: see matcher)</p>
|
1064
|
-
</dd><dt>image_selector_type = Symbol
|
1062
|
+
</dd><dt>image_selector_type = Symbol
|
1065
1063
|
<dd>
|
1066
1064
|
<p>The type of selector to use, :css or :xpath (Default: :css)</p>
|
1067
|
-
</dd><dt>attribute_selector = lambda
|
1065
|
+
</dd><dt>attribute_selector = lambda
|
1068
1066
|
<dd>
|
1069
1067
|
<p>A lambda that takes label and value as arguments and return a selector
|
1070
1068
|
(Default: see matcher)</p>
|
1071
|
-
</dd><dt>attribute_selector_type = Symbol
|
1069
|
+
</dd><dt>attribute_selector_type = Symbol
|
1072
1070
|
<dd>
|
1073
1071
|
<p>The type of selector to use, :css or :xpath (Default: :xpath)</p>
|
1074
|
-
</dd><dt>flash_notice_selector = String
|
1072
|
+
</dd><dt>flash_notice_selector = String
|
1075
1073
|
<dd>
|
1076
|
-
<p>The selector to use when finding the flash notice (Default:
|
1077
|
-
#flash .notice, .flash.notice
|
1078
|
-
</dd><dt>flash_notice_selector_type = Symbol
|
1074
|
+
<p>The selector to use when finding the flash notice (Default: “#flash.notice,
|
1075
|
+
#flash .notice, .flash.notice”)</p>
|
1076
|
+
</dd><dt>flash_notice_selector_type = Symbol
|
1079
1077
|
<dd>
|
1080
1078
|
<p>The type of selector to use, :css or :xpath (Default: :css)</p>
|
1081
|
-
</dd><dt>flash_alert_selector = String
|
1079
|
+
</dd><dt>flash_alert_selector = String
|
1082
1080
|
<dd>
|
1083
|
-
<p>The selector to use when finding the flash alert (Default:
|
1084
|
-
#flash .alert, .flash.alert
|
1085
|
-
</dd><dt>flash_alert_selector_type = Symbol
|
1081
|
+
<p>The selector to use when finding the flash alert (Default: “#flash.alert,
|
1082
|
+
#flash .alert, .flash.alert”)</p>
|
1083
|
+
</dd><dt>flash_alert_selector_type = Symbol
|
1086
1084
|
<dd>
|
1087
1085
|
<p>The type of selector to use, :css or :xpath (Default: :css)</p>
|
1088
|
-
</dd><dt>form_errors_on_selector = String
|
1086
|
+
</dd><dt>form_errors_on_selector = String
|
1089
1087
|
<dd>
|
1090
1088
|
<p>A xpath expression to be used when finding associated error notices
|
1091
1089
|
(Default: see matcher)</p>
|
1092
|
-
</dd><dt>table_row_selector = lambda
|
1090
|
+
</dd><dt>table_row_selector = lambda
|
1093
1091
|
<dd>
|
1094
1092
|
<p>A lambda that takes table row return a selector (Default: see matcher)</p>
|
1095
1093
|
</dd></dl>
|
@@ -1139,12 +1137,12 @@ a good place to put your configurations in.</p>
|
|
1139
1137
|
<pre class="lines">
|
1140
1138
|
|
1141
1139
|
|
1140
|
+
66
|
1142
1141
|
67
|
1143
|
-
68
|
1144
|
-
69</pre>
|
1142
|
+
68</pre>
|
1145
1143
|
</td>
|
1146
1144
|
<td>
|
1147
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
1145
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 66</span>
|
1148
1146
|
|
1149
1147
|
<span class='kw'>def</span> <span class='id identifier rubyid_configure'>configure</span>
|
1150
1148
|
<span class='kw'>yield</span> <span class='kw'>self</span>
|
@@ -1157,7 +1155,7 @@ a good place to put your configurations in.</p>
|
|
1157
1155
|
<div class="method_details ">
|
1158
1156
|
<h3 class="signature " id="use_default_configuration!-class_method">
|
1159
1157
|
|
1160
|
-
|
1158
|
+
.<strong>use_default_configuration!</strong> ⇒ <tt>Object</tt>
|
1161
1159
|
|
1162
1160
|
|
1163
1161
|
|
@@ -1180,6 +1178,7 @@ a good place to put your configurations in.</p>
|
|
1180
1178
|
<pre class="lines">
|
1181
1179
|
|
1182
1180
|
|
1181
|
+
74
|
1183
1182
|
75
|
1184
1183
|
76
|
1185
1184
|
77
|
@@ -1199,11 +1198,10 @@ a good place to put your configurations in.</p>
|
|
1199
1198
|
91
|
1200
1199
|
92
|
1201
1200
|
93
|
1202
|
-
94
|
1203
|
-
95</pre>
|
1201
|
+
94</pre>
|
1204
1202
|
</td>
|
1205
1203
|
<td>
|
1206
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line
|
1204
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers.rb', line 74</span>
|
1207
1205
|
|
1208
1206
|
<span class='kw'>def</span> <span class='id identifier rubyid_use_default_configuration!'>use_default_configuration!</span>
|
1209
1207
|
<span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
@@ -1235,11 +1233,12 @@ a good place to put your configurations in.</p>
|
|
1235
1233
|
|
1236
1234
|
</div>
|
1237
1235
|
|
1238
|
-
|
1239
|
-
Generated on Wed
|
1236
|
+
<div id="footer">
|
1237
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
1240
1238
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1241
|
-
0.
|
1239
|
+
0.9.12 (ruby-2.4.1).
|
1242
1240
|
</div>
|
1243
1241
|
|
1242
|
+
</div>
|
1244
1243
|
</body>
|
1245
1244
|
</html>
|