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.
Files changed (82) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +3 -6
  3. data/{development.txt → development.md} +2 -2
  4. data/doc/ElabsMatchers/Helpers/Fixtures.html +46 -46
  5. data/doc/ElabsMatchers/Helpers/NormalizeKeys.html +45 -45
  6. data/doc/ElabsMatchers/Helpers/ReloadRecord.html +45 -45
  7. data/doc/ElabsMatchers/Helpers/SelectYearAndMonth.html +48 -48
  8. data/doc/ElabsMatchers/Helpers.html +40 -40
  9. data/doc/ElabsMatchers/Matchers/{Allow/AllowMatcher.html → BeValidWith/BeValidWithMatcher.html} +150 -85
  10. data/doc/ElabsMatchers/Matchers/BeValidWith.html +229 -0
  11. data/doc/ElabsMatchers/Matchers/ContainHash/ContainHashMatcher.html +80 -67
  12. data/doc/ElabsMatchers/Matchers/ContainHash.html +51 -51
  13. data/doc/ElabsMatchers/Matchers/HaveAttribute/HaveAttributeMatcher.html +108 -95
  14. data/doc/ElabsMatchers/Matchers/HaveAttribute.html +49 -49
  15. data/doc/ElabsMatchers/Matchers/HaveFields/HaveFieldsMatcher.html +103 -90
  16. data/doc/ElabsMatchers/Matchers/HaveFields.html +50 -50
  17. data/doc/ElabsMatchers/Matchers/HaveFlash/HaveFlashMatcher.html +108 -95
  18. data/doc/ElabsMatchers/Matchers/HaveFlash.html +57 -57
  19. data/doc/ElabsMatchers/Matchers/HaveFormErrorsOn/HaveFormErrorsOnMatcher.html +110 -97
  20. data/doc/ElabsMatchers/Matchers/HaveFormErrorsOn.html +49 -49
  21. data/doc/ElabsMatchers/Matchers/HaveHeader/HaveHeaderMatcher.html +103 -90
  22. data/doc/ElabsMatchers/Matchers/HaveHeader.html +49 -49
  23. data/doc/ElabsMatchers/Matchers/HaveImage/HaveImageMatcher.html +104 -91
  24. data/doc/ElabsMatchers/Matchers/HaveImage.html +49 -49
  25. data/doc/ElabsMatchers/Matchers/OnlyInclude/OnlyIncludeMatcher.html +79 -66
  26. data/doc/ElabsMatchers/Matchers/OnlyInclude.html +50 -50
  27. data/doc/ElabsMatchers/Matchers/Persist/PersistMatcher.html +134 -69
  28. data/doc/ElabsMatchers/Matchers/Persist.html +49 -49
  29. data/doc/ElabsMatchers/Matchers.html +42 -42
  30. data/doc/ElabsMatchers.html +143 -144
  31. data/doc/_index.html +35 -52
  32. data/doc/class_list.html +25 -27
  33. data/doc/css/full_list.css +32 -31
  34. data/doc/css/style.css +262 -91
  35. data/doc/file.README.html +91 -87
  36. data/doc/file_list.html +27 -26
  37. data/doc/frames.html +10 -21
  38. data/doc/index.html +91 -87
  39. data/doc/js/app.js +106 -72
  40. data/doc/js/full_list.js +170 -127
  41. data/doc/method_list.html +456 -505
  42. data/doc/top-level-namespace.html +36 -38
  43. data/elabs_matchers.gemspec +2 -2
  44. data/history.txt +11 -0
  45. data/lib/elabs_matchers/helpers/normalize_keys.rb +1 -1
  46. data/lib/elabs_matchers/helpers/select_year_and_month.rb +1 -0
  47. data/lib/elabs_matchers/matchers/be_valid_with.rb +5 -10
  48. data/lib/elabs_matchers/matchers/contain_hash.rb +4 -2
  49. data/lib/elabs_matchers/matchers/have_attribute.rb +5 -2
  50. data/lib/elabs_matchers/matchers/have_fields.rb +5 -2
  51. data/lib/elabs_matchers/matchers/have_flash.rb +5 -2
  52. data/lib/elabs_matchers/matchers/have_form_errors_on.rb +5 -2
  53. data/lib/elabs_matchers/matchers/have_header.rb +5 -2
  54. data/lib/elabs_matchers/matchers/have_image.rb +5 -2
  55. data/lib/elabs_matchers/matchers/only_include.rb +14 -2
  56. data/lib/elabs_matchers/matchers/persist.rb +8 -2
  57. data/lib/elabs_matchers/version.rb +1 -1
  58. data/lib/elabs_matchers.rb +0 -1
  59. data/spec/elabs_matchers/matchers/only_include_spec.rb +13 -0
  60. data/spec/elabs_matchers/matchers/persist_spec.rb +1 -1
  61. data/spec/spec_helper.rb +7 -0
  62. metadata +8 -29
  63. data/doc/Cucumber.html +0 -116
  64. data/doc/ElabsMatchers/Cucumber/Common.html +0 -145
  65. data/doc/ElabsMatchers/Cucumber.html +0 -108
  66. data/doc/ElabsMatchers/Helpers/Capybara.html +0 -241
  67. data/doc/ElabsMatchers/Helpers/Common.html +0 -213
  68. data/doc/ElabsMatchers/Helpers/Orm.html +0 -289
  69. data/doc/ElabsMatchers/Helpers/Session.html +0 -497
  70. data/doc/ElabsMatchers/Matchers/Allow.html +0 -229
  71. data/doc/ElabsMatchers/Matchers/Capybara/Common.html +0 -1159
  72. data/doc/ElabsMatchers/Matchers/Capybara.html +0 -108
  73. data/doc/ElabsMatchers/Matchers/HaveTableRow/HaveTableRowMatcher.html +0 -654
  74. data/doc/ElabsMatchers/Matchers/HaveTableRow.html +0 -236
  75. data/doc/ElabsMatchers/Matchers/Rspec/Allow.html +0 -98
  76. data/doc/ElabsMatchers/Matchers/Rspec/Common.html +0 -332
  77. data/doc/ElabsMatchers/Matchers/Rspec/Orm.html +0 -231
  78. data/doc/ElabsMatchers/Matchers/Rspec.html +0 -110
  79. data/doc/ElabsMatchers/Orm/Post.html +0 -1041
  80. data/doc/ElabsMatchers/Orm.html +0 -108
  81. data/lib/elabs_matchers/matchers/have_table_row.rb +0 -124
  82. data/spec/elabs_matchers/matchers/have_table_row_spec.rb +0 -119
@@ -1,241 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: ElabsMatchers::Helpers::Capybara
8
-
9
- &mdash; Documentation by YARD 0.7.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '../..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../../_index.html">Index (C)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../../ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Helpers.html" title="ElabsMatchers::Helpers (module)">Helpers</a></span></span>
38
- &raquo;
39
- <span class="title">Capybara</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Module: ElabsMatchers::Helpers::Capybara
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- <dt class="r1 last">Defined in:</dt>
75
- <dd class="r1 last">lib/elabs_matchers/helpers/capybara.rb</dd>
76
-
77
- </dl>
78
- <div class="clear"></div>
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
- <h2>
89
- Instance Method Summary
90
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
91
- </h2>
92
-
93
- <ul class="summary">
94
-
95
- <li class="public ">
96
- <span class="summary_signature">
97
-
98
- <a href="#select_year_and_month-instance_method" title="#select_year_and_month (instance method)">- (Object) <strong>select_year_and_month</strong>(year, month, options = {}) </a>
99
-
100
-
101
-
102
- </span>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
- <span class="summary_desc"><div class='inline'>
112
- <p>Selects a year and a month on a rails date select input field.</p>
113
- </div></span>
114
-
115
- </li>
116
-
117
-
118
- </ul>
119
-
120
-
121
-
122
-
123
- <div id="instance_method_details" class="method_details_list">
124
- <h2>Instance Method Details</h2>
125
-
126
-
127
- <div class="method_details first">
128
- <p class="signature first" id="select_year_and_month-instance_method">
129
-
130
- - (<tt>Object</tt>) <strong>select_year_and_month</strong>(year, month, options = {})
131
-
132
-
133
-
134
- </p><div class="docstring">
135
- <div class="discussion">
136
-
137
- <p>Selects a year and a month on a rails date select input field.</p>
138
-
139
- <p>Example: select_year_and_month("2010", "March", :from =&gt; "Birth date")</p>
140
-
141
-
142
- </div>
143
- </div>
144
- <div class="tags">
145
- <h3>Parameters:</h3>
146
- <ul class="param">
147
-
148
- <li>
149
-
150
- <span class='name'>year</span>
151
-
152
-
153
- <span class='type'>(<tt>String</tt>)</span>
154
-
155
-
156
-
157
- &mdash;
158
- <div class='inline'>
159
- <p>The name of the year used in the select input field</p>
160
- </div>
161
-
162
- </li>
163
-
164
- <li>
165
-
166
- <span class='name'>month</span>
167
-
168
-
169
- <span class='type'>(<tt>String</tt>)</span>
170
-
171
-
172
-
173
- &mdash;
174
- <div class='inline'>
175
- <p>The name of the month used in the select input field</p>
176
- </div>
177
-
178
- </li>
179
-
180
- <li>
181
-
182
- <span class='name'>options</span>
183
-
184
-
185
- <span class='type'>(<tt>Hash</tt>)</span>
186
-
187
-
188
- <em class="default">(defaults to: <tt>{}</tt>)</em>
189
-
190
-
191
- &mdash;
192
- <div class='inline'>
193
- <p>The label of the select field</p>
194
- </div>
195
-
196
- </li>
197
-
198
- </ul>
199
-
200
-
201
- </div><table class="source_code">
202
- <tr>
203
- <td>
204
- <pre class="lines">
205
-
206
-
207
- 15
208
- 16
209
- 17
210
- 18
211
- 19
212
- 20
213
- 21</pre>
214
- </td>
215
- <td>
216
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/helpers/capybara.rb', line 15</span>
217
-
218
- <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>
219
- <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>
220
- <span class='id identifier rubyid_month_field'>month_field</span> <span class='op'>=</span> <span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='symbol'>:id</span><span class='comma'>,</span> <span class='id identifier rubyid_year_field'>year_field</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sub'>sub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>_1i$</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_2i</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
221
-
222
- <span class='id identifier rubyid_year_field'>year_field</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
223
- <span class='id identifier rubyid_month_field'>month_field</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_month'>month</span><span class='rparen'>)</span>
224
- <span class='kw'>end</span></pre>
225
- </td>
226
- </tr>
227
- </table>
228
- </div>
229
-
230
- </div>
231
-
232
- </div>
233
-
234
- <div id="footer">
235
- Generated on Fri Feb 17 16:29:16 2012 by
236
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
237
- 0.7.5 (ruby-1.9.3).
238
- </div>
239
-
240
- </body>
241
- </html>
@@ -1,213 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: ElabsMatchers::Helpers::Common
8
-
9
- &mdash; Documentation by YARD 0.7.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '../..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../../_index.html">Index (C)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../../ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Helpers.html" title="ElabsMatchers::Helpers (module)">Helpers</a></span></span>
38
- &raquo;
39
- <span class="title">Common</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Module: ElabsMatchers::Helpers::Common
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- <dt class="r1 last">Defined in:</dt>
75
- <dd class="r1 last">lib/elabs_matchers/helpers/common.rb</dd>
76
-
77
- </dl>
78
- <div class="clear"></div>
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
- <h2>
89
- Instance Method Summary
90
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
91
- </h2>
92
-
93
- <ul class="summary">
94
-
95
- <li class="public ">
96
- <span class="summary_signature">
97
-
98
- <a href="#normalize_keys-instance_method" title="#normalize_keys (instance method)">- (Object) <strong>normalize_keys</strong>(hash) </a>
99
-
100
-
101
-
102
- </span>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
- <span class="summary_desc"><div class='inline'>
112
- <p>Normalizes a hash so that it can be described in a more human friendly
113
- manner.</p>
114
- </div></span>
115
-
116
- </li>
117
-
118
-
119
- </ul>
120
-
121
-
122
-
123
-
124
- <div id="instance_method_details" class="method_details_list">
125
- <h2>Instance Method Details</h2>
126
-
127
-
128
- <div class="method_details first">
129
- <p class="signature first" id="normalize_keys-instance_method">
130
-
131
- - (<tt>Object</tt>) <strong>normalize_keys</strong>(hash)
132
-
133
-
134
-
135
- </p><div class="docstring">
136
- <div class="discussion">
137
-
138
- <p>Normalizes a hash so that it can be described in a more human friendly
139
- manner.</p>
140
-
141
- <p>Examples: normalize_keys({ "First name" =&gt; "Adam" }) =&gt;
142
- HashWithIndifferentAccess.new({ "first_name" =&gt; "adam" })</p>
143
-
144
- <p># Or in a Cucumber table: Given the following people:</p>
145
-
146
- <pre class="code ruby"><code>| First name | Last name |
147
- | Douglas | Adams |</code></pre>
148
-
149
-
150
- </div>
151
- </div>
152
- <div class="tags">
153
- <h3>Parameters:</h3>
154
- <ul class="param">
155
-
156
- <li>
157
-
158
- <span class='name'>options</span>
159
-
160
-
161
- <span class='type'>(<tt>Hash</tt>)</span>
162
-
163
-
164
-
165
- &mdash;
166
- <div class='inline'>
167
- <p>A hash of human-friendly key and value pairs.</p>
168
- </div>
169
-
170
- </li>
171
-
172
- </ul>
173
-
174
-
175
- </div><table class="source_code">
176
- <tr>
177
- <td>
178
- <pre class="lines">
179
-
180
-
181
- 21
182
- 22
183
- 23
184
- 24
185
- 25
186
- 26</pre>
187
- </td>
188
- <td>
189
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/helpers/common.rb', line 21</span>
190
-
191
- <span class='kw'>def</span> <span class='id identifier rubyid_normalize_keys'>normalize_keys</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
192
- <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='const'>HashWithIndifferentAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_new_hash'>new_hash</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span><span class='op'>|</span>
193
- <span class='id identifier rubyid_new_hash'>new_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_parameterize'>parameterize</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>_</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
194
- <span class='id identifier rubyid_new_hash'>new_hash</span>
195
- <span class='kw'>end</span>
196
- <span class='kw'>end</span></pre>
197
- </td>
198
- </tr>
199
- </table>
200
- </div>
201
-
202
- </div>
203
-
204
- </div>
205
-
206
- <div id="footer">
207
- Generated on Fri Feb 17 16:29:16 2012 by
208
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
209
- 0.7.5 (ruby-1.9.3).
210
- </div>
211
-
212
- </body>
213
- </html>