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::Helpers::SelectYearAndMonth
|
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::Helpers::SelectYearAndMonth";
|
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 (S)</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="../Helpers.html" title="ElabsMatchers::Helpers (module)">Helpers</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">SelectYearAndMonth</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::Helpers::SelectYearAndMonth
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Helpers::SelectYearAndMonth
|
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/helpers/select_year_and_month.rb</dd>
|
82
|
+
</dl>
|
83
83
|
|
84
|
-
</
|
85
|
-
<div class="clear"></div>
|
84
|
+
</div>
|
86
85
|
|
87
86
|
|
88
87
|
|
@@ -94,7 +93,7 @@
|
|
94
93
|
|
95
94
|
<h2>
|
96
95
|
Instance Method Summary
|
97
|
-
<small
|
96
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
98
97
|
</h2>
|
99
98
|
|
100
99
|
<ul class="summary">
|
@@ -102,7 +101,7 @@
|
|
102
101
|
<li class="public ">
|
103
102
|
<span class="summary_signature">
|
104
103
|
|
105
|
-
<a href="#select_year_and_month-instance_method" title="#select_year_and_month (instance method)"
|
104
|
+
<a href="#select_year_and_month-instance_method" title="#select_year_and_month (instance method)">#<strong>select_year_and_month</strong>(year, month, options = {}) ⇒ Object </a>
|
106
105
|
|
107
106
|
|
108
107
|
|
@@ -135,7 +134,7 @@
|
|
135
134
|
<div class="method_details first">
|
136
135
|
<h3 class="signature first" id="select_year_and_month-instance_method">
|
137
136
|
|
138
|
-
|
137
|
+
#<strong>select_year_and_month</strong>(year, month, options = {}) ⇒ <tt>Object</tt>
|
139
138
|
|
140
139
|
|
141
140
|
|
@@ -146,7 +145,7 @@
|
|
146
145
|
|
147
146
|
<p>Selects a year and a month on a rails date select input field.</p>
|
148
147
|
|
149
|
-
<p>Example: select_year_and_month(
|
148
|
+
<p>Example: select_year_and_month(“2010”, “March”, :from => “Birth date”)</p>
|
150
149
|
|
151
150
|
|
152
151
|
</div>
|
@@ -214,16 +213,16 @@
|
|
214
213
|
<pre class="lines">
|
215
214
|
|
216
215
|
|
217
|
-
17
|
218
|
-
18
|
219
216
|
19
|
220
217
|
20
|
221
218
|
21
|
222
219
|
22
|
223
|
-
23
|
220
|
+
23
|
221
|
+
24
|
222
|
+
25</pre>
|
224
223
|
</td>
|
225
224
|
<td>
|
226
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/helpers/select_year_and_month.rb', line
|
225
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/helpers/select_year_and_month.rb', line 19</span>
|
227
226
|
|
228
227
|
<span class='kw'>def</span> <span class='id identifier rubyid_select_year_and_month'>select_year_and_month</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
229
228
|
<span class='id identifier rubyid_year_field'>year_field</span> <span class='op'>=</span> <span class='id identifier rubyid_find_field'>find_field</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:from</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
@@ -241,11 +240,12 @@
|
|
241
240
|
|
242
241
|
</div>
|
243
242
|
|
244
|
-
|
245
|
-
Generated on Wed
|
243
|
+
<div id="footer">
|
244
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
246
245
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
247
|
-
0.
|
246
|
+
0.9.12 (ruby-2.4.1).
|
248
247
|
</div>
|
249
248
|
|
249
|
+
</div>
|
250
250
|
</body>
|
251
251
|
</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::Helpers
|
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::Helpers";
|
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 (H)</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">Helpers</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::Helpers
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Helpers
|
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/helpers/fixtures.rb<span class="defines">,<br />
|
83
82
|
lib/elabs_matchers/helpers/reload_record.rb,<br /> lib/elabs_matchers/helpers/normalize_keys.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">
|
@@ -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/Matchers/{Allow/AllowMatcher.html → BeValidWith/BeValidWithMatcher.html}
RENAMED
@@ -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
|
-
Class: ElabsMatchers::Matchers::
|
7
|
+
Class: ElabsMatchers::Matchers::BeValidWith::BeValidWithMatcher
|
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::BeValidWith::BeValidWithMatcher";
|
19
19
|
relpath = '../../../';
|
20
|
-
framesUrl = "../../../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,88 +27,89 @@
|
|
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
|
-
<a href="../../../_index.html">Index (
|
35
|
-
<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="../
|
39
|
+
<a href="../../../_index.html">Index (B)</a> »
|
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="../BeValidWith.html" title="ElabsMatchers::Matchers::BeValidWith (module)">BeValidWith</a></span></span>
|
36
41
|
»
|
37
|
-
<span class="title">
|
42
|
+
<span class="title">BeValidWithMatcher</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::Allow::AllowMatcher
|
62
|
+
<div id="content"><h1>Class: ElabsMatchers::Matchers::BeValidWith::BeValidWithMatcher
|
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">Object</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
79
75
|
<li>Object</li>
|
80
76
|
|
81
|
-
<li class="next">ElabsMatchers::Matchers::
|
77
|
+
<li class="next">ElabsMatchers::Matchers::BeValidWith::BeValidWithMatcher</li>
|
82
78
|
|
83
79
|
</ul>
|
84
80
|
<a href="#" class="inheritanceTree">show all</a>
|
85
81
|
|
86
|
-
|
87
|
-
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
88
87
|
|
89
88
|
|
90
|
-
|
91
89
|
|
92
|
-
|
93
90
|
|
91
|
+
|
94
92
|
|
93
|
+
|
95
94
|
|
96
|
-
|
97
|
-
<
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/elabs_matchers/matchers/be_valid_with.rb</dd>
|
98
|
+
</dl>
|
98
99
|
|
99
|
-
</
|
100
|
-
<div class="clear"></div>
|
100
|
+
</div>
|
101
101
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
105
|
|
106
|
-
<h2>Instance Attribute Summary <small
|
106
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
107
107
|
<ul class="summary">
|
108
108
|
|
109
109
|
<li class="public ">
|
110
110
|
<span class="summary_signature">
|
111
111
|
|
112
|
-
<a href="#attributes-instance_method" title="#attributes (instance method)"
|
112
|
+
<a href="#attributes-instance_method" title="#attributes (instance method)">#<strong>attributes</strong> ⇒ Object </a>
|
113
113
|
|
114
114
|
|
115
115
|
|
@@ -138,7 +138,7 @@
|
|
138
138
|
<li class="public ">
|
139
139
|
<span class="summary_signature">
|
140
140
|
|
141
|
-
<a href="#record-instance_method" title="#record (instance method)"
|
141
|
+
<a href="#record-instance_method" title="#record (instance method)">#<strong>record</strong> ⇒ Object </a>
|
142
142
|
|
143
143
|
|
144
144
|
|
@@ -172,7 +172,7 @@
|
|
172
172
|
|
173
173
|
<h2>
|
174
174
|
Instance Method Summary
|
175
|
-
<small
|
175
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
176
176
|
</h2>
|
177
177
|
|
178
178
|
<ul class="summary">
|
@@ -180,7 +180,7 @@
|
|
180
180
|
<li class="public ">
|
181
181
|
<span class="summary_signature">
|
182
182
|
|
183
|
-
<a href="#as-instance_method" title="#as (instance method)"
|
183
|
+
<a href="#as-instance_method" title="#as (instance method)">#<strong>as</strong>(*attributes) ⇒ Object </a>
|
184
184
|
|
185
185
|
|
186
186
|
|
@@ -204,7 +204,29 @@
|
|
204
204
|
<li class="public ">
|
205
205
|
<span class="summary_signature">
|
206
206
|
|
207
|
-
<a href="#
|
207
|
+
<a href="#description-instance_method" title="#description (instance method)">#<strong>description</strong> ⇒ Object </a>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
</span>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
222
|
+
|
223
|
+
</li>
|
224
|
+
|
225
|
+
|
226
|
+
<li class="public ">
|
227
|
+
<span class="summary_signature">
|
228
|
+
|
229
|
+
<a href="#does_not_match%3F-instance_method" title="#does_not_match? (instance method)">#<strong>does_not_match?</strong>(record) ⇒ Boolean </a>
|
208
230
|
|
209
231
|
|
210
232
|
|
@@ -226,10 +248,12 @@
|
|
226
248
|
<li class="public ">
|
227
249
|
<span class="summary_signature">
|
228
250
|
|
229
|
-
<a href="#
|
251
|
+
<a href="#failure_message-instance_method" title="#failure_message (instance method)">#<strong>failure_message</strong> ⇒ Object </a>
|
230
252
|
|
231
253
|
|
232
254
|
|
255
|
+
(also: #failure_message_for_should)
|
256
|
+
|
233
257
|
</span>
|
234
258
|
|
235
259
|
|
@@ -248,10 +272,12 @@
|
|
248
272
|
<li class="public ">
|
249
273
|
<span class="summary_signature">
|
250
274
|
|
251
|
-
<a href="#
|
275
|
+
<a href="#failure_message_when_negated-instance_method" title="#failure_message_when_negated (instance method)">#<strong>failure_message_when_negated</strong> ⇒ Object </a>
|
252
276
|
|
253
277
|
|
254
278
|
|
279
|
+
(also: #failure_message_for_should_not)
|
280
|
+
|
255
281
|
</span>
|
256
282
|
|
257
283
|
|
@@ -270,7 +296,7 @@
|
|
270
296
|
<li class="public ">
|
271
297
|
<span class="summary_signature">
|
272
298
|
|
273
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
299
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(values) ⇒ BeValidWithMatcher </a>
|
274
300
|
|
275
301
|
|
276
302
|
|
@@ -287,7 +313,7 @@
|
|
287
313
|
|
288
314
|
|
289
315
|
<span class="summary_desc"><div class='inline'>
|
290
|
-
<p>A new instance of
|
316
|
+
<p>A new instance of BeValidWithMatcher.</p>
|
291
317
|
</div></span>
|
292
318
|
|
293
319
|
</li>
|
@@ -296,7 +322,7 @@
|
|
296
322
|
<li class="public ">
|
297
323
|
<span class="summary_signature">
|
298
324
|
|
299
|
-
<a href="#matches%3F-instance_method" title="#matches? (instance method)"
|
325
|
+
<a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(record) ⇒ Boolean </a>
|
300
326
|
|
301
327
|
|
302
328
|
|
@@ -324,7 +350,7 @@
|
|
324
350
|
<div class="method_details first">
|
325
351
|
<h3 class="signature first" id="initialize-instance_method">
|
326
352
|
|
327
|
-
|
353
|
+
#<strong>initialize</strong>(values) ⇒ <tt><span class='object_link'><a href="" title="ElabsMatchers::Matchers::BeValidWith::BeValidWithMatcher (class)">BeValidWithMatcher</a></span></tt>
|
328
354
|
|
329
355
|
|
330
356
|
|
@@ -333,7 +359,7 @@
|
|
333
359
|
</h3><div class="docstring">
|
334
360
|
<div class="discussion">
|
335
361
|
|
336
|
-
<p>
|
362
|
+
<p>Returns a new instance of BeValidWithMatcher</p>
|
337
363
|
|
338
364
|
|
339
365
|
</div>
|
@@ -352,7 +378,7 @@
|
|
352
378
|
12</pre>
|
353
379
|
</td>
|
354
380
|
<td>
|
355
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
381
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 10</span>
|
356
382
|
|
357
383
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
358
384
|
<span class='ivar'>@values</span> <span class='op'>=</span> <span class='id identifier rubyid_values'>values</span>
|
@@ -372,7 +398,7 @@
|
|
372
398
|
<div class="method_details first">
|
373
399
|
<h3 class="signature first" id="attributes-instance_method">
|
374
400
|
|
375
|
-
|
401
|
+
#<strong>attributes</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
376
402
|
|
377
403
|
|
378
404
|
|
@@ -400,7 +426,7 @@
|
|
400
426
|
10</pre>
|
401
427
|
</td>
|
402
428
|
<td>
|
403
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
429
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 8</span>
|
404
430
|
|
405
431
|
<span class='kw'>def</span> <span class='id identifier rubyid_attributes'>attributes</span>
|
406
432
|
<span class='ivar'>@attributes</span>
|
@@ -415,7 +441,7 @@
|
|
415
441
|
<div class="method_details ">
|
416
442
|
<h3 class="signature " id="record-instance_method">
|
417
443
|
|
418
|
-
|
444
|
+
#<strong>record</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
419
445
|
|
420
446
|
|
421
447
|
|
@@ -443,7 +469,7 @@
|
|
443
469
|
10</pre>
|
444
470
|
</td>
|
445
471
|
<td>
|
446
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
472
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 8</span>
|
447
473
|
|
448
474
|
<span class='kw'>def</span> <span class='id identifier rubyid_record'>record</span>
|
449
475
|
<span class='ivar'>@record</span>
|
@@ -463,7 +489,7 @@
|
|
463
489
|
<div class="method_details first">
|
464
490
|
<h3 class="signature first" id="as-instance_method">
|
465
491
|
|
466
|
-
|
492
|
+
#<strong>as</strong>(*attributes) ⇒ <tt>Object</tt>
|
467
493
|
|
468
494
|
|
469
495
|
|
@@ -474,7 +500,7 @@
|
|
474
500
|
|
475
501
|
<p>Tell the matcher which attributes to check</p>
|
476
502
|
|
477
|
-
<p>Example: post.should
|
503
|
+
<p>Example: post.should be_valid_with(“Elabs”).as(:title)</p>
|
478
504
|
|
479
505
|
|
480
506
|
</div>
|
@@ -514,7 +540,7 @@
|
|
514
540
|
36</pre>
|
515
541
|
</td>
|
516
542
|
<td>
|
517
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
543
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 33</span>
|
518
544
|
|
519
545
|
<span class='kw'>def</span> <span class='id identifier rubyid_as'>as</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_attributes'>attributes</span><span class='rparen'>)</span>
|
520
546
|
<span class='ivar'>@attributes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='op'>*</span><span class='id identifier rubyid_attributes'>attributes</span><span class='rbracket'>]</span>
|
@@ -523,12 +549,42 @@
|
|
523
549
|
</td>
|
524
550
|
</tr>
|
525
551
|
</table>
|
552
|
+
</div>
|
553
|
+
|
554
|
+
<div class="method_details ">
|
555
|
+
<h3 class="signature " id="description-instance_method">
|
556
|
+
|
557
|
+
#<strong>description</strong> ⇒ <tt>Object</tt>
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
</h3><table class="source_code">
|
564
|
+
<tr>
|
565
|
+
<td>
|
566
|
+
<pre class="lines">
|
567
|
+
|
568
|
+
|
569
|
+
48
|
570
|
+
49
|
571
|
+
50</pre>
|
572
|
+
</td>
|
573
|
+
<td>
|
574
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 48</span>
|
575
|
+
|
576
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span>
|
577
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>be valid with </span><span class='embexpr_beg'>#{</span><span class='ivar'>@values</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> as </span><span class='embexpr_beg'>#{</span><span class='ivar'>@attributes</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
578
|
+
<span class='kw'>end</span></pre>
|
579
|
+
</td>
|
580
|
+
</tr>
|
581
|
+
</table>
|
526
582
|
</div>
|
527
583
|
|
528
584
|
<div class="method_details ">
|
529
585
|
<h3 class="signature " id="does_not_match?-instance_method">
|
530
586
|
|
531
|
-
|
587
|
+
#<strong>does_not_match?</strong>(record) ⇒ <tt>Boolean</tt>
|
532
588
|
|
533
589
|
|
534
590
|
|
@@ -568,7 +624,7 @@
|
|
568
624
|
22</pre>
|
569
625
|
</td>
|
570
626
|
<td>
|
571
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
627
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 19</span>
|
572
628
|
|
573
629
|
<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_record'>record</span><span class='rparen'>)</span>
|
574
630
|
<span class='ivar'>@record</span> <span class='op'>=</span> <span class='id identifier rubyid_record'>record</span>
|
@@ -580,12 +636,16 @@
|
|
580
636
|
</div>
|
581
637
|
|
582
638
|
<div class="method_details ">
|
583
|
-
<h3 class="signature " id="
|
639
|
+
<h3 class="signature " id="failure_message-instance_method">
|
584
640
|
|
585
|
-
|
641
|
+
#<strong>failure_message</strong> ⇒ <tt>Object</tt>
|
586
642
|
|
587
643
|
|
588
644
|
|
645
|
+
<span class="aliases">Also known as:
|
646
|
+
<span class="names"><span id='failure_message_for_should-instance_method'>failure_message_for_should</span></span>
|
647
|
+
</span>
|
648
|
+
|
589
649
|
|
590
650
|
|
591
651
|
</h3><table class="source_code">
|
@@ -599,9 +659,9 @@
|
|
599
659
|
40</pre>
|
600
660
|
</td>
|
601
661
|
<td>
|
602
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
662
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 38</span>
|
603
663
|
|
604
|
-
<span class='kw'>def</span> <span class='id identifier
|
664
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_failure_message'>failure_message</span>
|
605
665
|
<span class='id identifier rubyid_common_failure_message'>common_failure_message</span><span class='lparen'>(</span><span class='symbol'>:valid</span><span class='rparen'>)</span>
|
606
666
|
<span class='kw'>end</span></pre>
|
607
667
|
</td>
|
@@ -610,12 +670,16 @@
|
|
610
670
|
</div>
|
611
671
|
|
612
672
|
<div class="method_details ">
|
613
|
-
<h3 class="signature " id="
|
673
|
+
<h3 class="signature " id="failure_message_when_negated-instance_method">
|
614
674
|
|
615
|
-
|
675
|
+
#<strong>failure_message_when_negated</strong> ⇒ <tt>Object</tt>
|
616
676
|
|
617
677
|
|
618
678
|
|
679
|
+
<span class="aliases">Also known as:
|
680
|
+
<span class="names"><span id='failure_message_for_should_not-instance_method'>failure_message_for_should_not</span></span>
|
681
|
+
</span>
|
682
|
+
|
619
683
|
|
620
684
|
|
621
685
|
</h3><table class="source_code">
|
@@ -624,14 +688,14 @@
|
|
624
688
|
<pre class="lines">
|
625
689
|
|
626
690
|
|
627
|
-
42
|
628
691
|
43
|
629
|
-
44
|
692
|
+
44
|
693
|
+
45</pre>
|
630
694
|
</td>
|
631
695
|
<td>
|
632
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
696
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 43</span>
|
633
697
|
|
634
|
-
<span class='kw'>def</span> <span class='id identifier
|
698
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_failure_message_when_negated'>failure_message_when_negated</span>
|
635
699
|
<span class='id identifier rubyid_common_failure_message'>common_failure_message</span><span class='lparen'>(</span><span class='symbol'>:invalid</span><span class='rparen'>)</span>
|
636
700
|
<span class='kw'>end</span></pre>
|
637
701
|
</td>
|
@@ -642,7 +706,7 @@
|
|
642
706
|
<div class="method_details ">
|
643
707
|
<h3 class="signature " id="matches?-instance_method">
|
644
708
|
|
645
|
-
|
709
|
+
#<strong>matches?</strong>(record) ⇒ <tt>Boolean</tt>
|
646
710
|
|
647
711
|
|
648
712
|
|
@@ -682,7 +746,7 @@
|
|
682
746
|
17</pre>
|
683
747
|
</td>
|
684
748
|
<td>
|
685
|
-
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/
|
749
|
+
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/be_valid_with.rb', line 14</span>
|
686
750
|
|
687
751
|
<span class='kw'>def</span> <span class='id identifier rubyid_matches?'>matches?</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='rparen'>)</span>
|
688
752
|
<span class='ivar'>@record</span> <span class='op'>=</span> <span class='id identifier rubyid_record'>record</span>
|
@@ -697,11 +761,12 @@
|
|
697
761
|
|
698
762
|
</div>
|
699
763
|
|
700
|
-
|
701
|
-
Generated on Wed
|
764
|
+
<div id="footer">
|
765
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
702
766
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
703
|
-
0.
|
767
|
+
0.9.12 (ruby-2.4.1).
|
704
768
|
</div>
|
705
769
|
|
770
|
+
</div>
|
706
771
|
</body>
|
707
772
|
</html>
|