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,231 +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::Matchers::Rspec::Orm
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 (O)</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="../../Matchers.html" title="ElabsMatchers::Matchers (module)">Matchers</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Rspec.html" title="ElabsMatchers::Matchers::Rspec (module)">Rspec</a></span></span>
38
- &raquo;
39
- <span class="title">Orm</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::Matchers::Rspec::Orm
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/matchers/rspec/orm.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="#persist-instance_method" title="#persist (instance method)">- (Object) <strong>persist</strong> </a>
99
-
100
-
101
-
102
- </span>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
- <span class="summary_desc"><div class='inline'>
112
- <p>Asserts if an assigned value persistes in the database.</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="persist-instance_method">
129
-
130
- - (<tt>Object</tt>) <strong>persist</strong>
131
-
132
-
133
-
134
- </p><div class="docstring">
135
- <div class="discussion">
136
-
137
- <p>Asserts if an assigned value persistes in the database.</p>
138
-
139
- <p>Example: post.should persist(:title, "Blog post")</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'>attribute</span>
151
-
152
-
153
- <span class='type'>(<tt>Symbol</tt>)</span>
154
-
155
-
156
-
157
- &mdash;
158
- <div class='inline'>
159
- <p>name The name of the attibute to check if it persisted or not</p>
160
- </div>
161
-
162
- </li>
163
-
164
- <li>
165
-
166
- <span class='name'>value</span>
167
-
168
-
169
- <span class='type'>(<tt>Object</tt>)</span>
170
-
171
-
172
-
173
- &mdash;
174
- <div class='inline'>
175
- <p>The value to persist to the attribute</p>
176
- </div>
177
-
178
- </li>
179
-
180
- </ul>
181
-
182
-
183
- </div><table class="source_code">
184
- <tr>
185
- <td>
186
- <pre class="lines">
187
-
188
-
189
- 15
190
- 16
191
- 17
192
- 18
193
- 19
194
- 20
195
- 21
196
- 22
197
- 23
198
- 24
199
- 25</pre>
200
- </td>
201
- <td>
202
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/matchers/rspec/orm.rb', line 15</span>
203
-
204
- <span class='const'>RSpec</span><span class='op'>::</span><span class='const'>Matchers</span><span class='period'>.</span><span class='id identifier rubyid_define'>define</span> <span class='symbol'>:persist</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
205
- <span class='id identifier rubyid_match'>match</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_actual'>actual</span><span class='op'>|</span>
206
- <span class='id identifier rubyid_actual'>actual</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:#{</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
207
- <span class='id identifier rubyid_actual'>actual</span><span class='period'>.</span><span class='id identifier rubyid_save!'>save!</span>
208
- <span class='id identifier rubyid_actual'>actual</span> <span class='op'>=</span> <span class='id identifier rubyid_actual'>actual</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_actual'>actual</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
209
- <span class='ivar'>@final_value</span> <span class='op'>=</span> <span class='id identifier rubyid_actual'>actual</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rparen'>)</span>
210
- <span class='ivar'>@final_value</span> <span class='op'>==</span> <span class='id identifier rubyid_value'>value</span>
211
- <span class='kw'>end</span>
212
- <span class='id identifier rubyid_failure_message_for_should'>failure_message_for_should</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_actual'>actual</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Expected </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rbrace'>}</span><span class='tstring_content'> to be persisted and retain its value of </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_content'> but the value was </span><span class='embexpr_beg'>#{</span><span class='ivar'>@final_value</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
213
- <span class='id identifier rubyid_failure_message_for_should_not'>failure_message_for_should_not</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_actual'>actual</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Expected </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rbrace'>}</span><span class='tstring_content'> not to be persisted and retain its value of </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_content'> but it did.</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
214
- <span class='kw'>end</span></pre>
215
- </td>
216
- </tr>
217
- </table>
218
- </div>
219
-
220
- </div>
221
-
222
- </div>
223
-
224
- <div id="footer">
225
- Generated on Fri Feb 17 16:29:16 2012 by
226
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
- 0.7.5 (ruby-1.9.3).
228
- </div>
229
-
230
- </body>
231
- </html>
@@ -1,110 +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::Matchers::Rspec
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 (R)</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="../Matchers.html" title="ElabsMatchers::Matchers (module)">Matchers</a></span></span>
38
- &raquo;
39
- <span class="title">Rspec</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::Matchers::Rspec
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/matchers/rspec/orm.rb<span class="defines">,<br />
76
- lib/elabs_matchers/matchers/rspec/allow.rb,<br /> lib/elabs_matchers/matchers/rspec/common.rb</span>
77
- </dd>
78
-
79
- </dl>
80
- <div class="clear"></div>
81
-
82
- <h2>Defined Under Namespace</h2>
83
- <p class="children">
84
-
85
-
86
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Rspec/Allow.html" title="ElabsMatchers::Matchers::Rspec::Allow (module)">Allow</a></span>, <span class='object_link'><a href="Rspec/Common.html" title="ElabsMatchers::Matchers::Rspec::Common (module)">Common</a></span>, <span class='object_link'><a href="Rspec/Orm.html" title="ElabsMatchers::Matchers::Rspec::Orm (module)">Orm</a></span>
87
-
88
-
89
-
90
-
91
- </p>
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
- </div>
102
-
103
- <div id="footer">
104
- Generated on Fri Feb 17 16:29:16 2012 by
105
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
106
- 0.7.5 (ruby-1.9.3).
107
- </div>
108
-
109
- </body>
110
- </html>
@@ -1,1041 +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
- Class: ElabsMatchers::Orm::Post
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 (P)</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="../Orm.html" title="ElabsMatchers::Orm (module)">Orm</a></span></span>
38
- &raquo;
39
- <span class="title">Post</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>Class: ElabsMatchers::Orm::Post
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName">Object</span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next">ElabsMatchers::Orm::Post</li>
75
-
76
- </ul>
77
- <a href="#" class="inheritanceTree">show all</a>
78
-
79
- </dd>
80
-
81
-
82
-
83
-
84
- <dt class="r2">Extended by:</dt>
85
- <dd class="r2">ActiveModel::Naming</dd>
86
-
87
-
88
-
89
-
90
- <dt class="r1">Includes:</dt>
91
- <dd class="r1">ActiveModel::Validations</dd>
92
-
93
-
94
-
95
-
96
-
97
- <dt class="r2 last">Defined in:</dt>
98
- <dd class="r2 last">lib/elabs_matchers/orm/post.rb</dd>
99
-
100
- </dl>
101
- <div class="clear"></div>
102
-
103
-
104
-
105
-
106
-
107
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
108
- <ul class="summary">
109
-
110
- <li class="public ">
111
- <span class="summary_signature">
112
-
113
- <a href="#authors-instance_method" title="#authors (instance method)">- (Object) <strong>authors</strong> </a>
114
-
115
-
116
-
117
- </span>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- <span class="summary_desc"><div class='inline'>
130
- <p>Returns the value of attribute authors.</p>
131
- </div></span>
132
-
133
- </li>
134
-
135
-
136
- <li class="public ">
137
- <span class="summary_signature">
138
-
139
- <a href="#body-instance_method" title="#body (instance method)">- (Object) <strong>body</strong> </a>
140
-
141
-
142
-
143
- </span>
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
- <span class="summary_desc"><div class='inline'>
156
- <p>Returns the value of attribute body.</p>
157
- </div></span>
158
-
159
- </li>
160
-
161
-
162
- <li class="public ">
163
- <span class="summary_signature">
164
-
165
- <a href="#category-instance_method" title="#category (instance method)">- (Object) <strong>category</strong> </a>
166
-
167
-
168
-
169
- </span>
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
- <span class="summary_desc"><div class='inline'>
182
- <p>Returns the value of attribute category.</p>
183
- </div></span>
184
-
185
- </li>
186
-
187
-
188
- <li class="public ">
189
- <span class="summary_signature">
190
-
191
- <a href="#co_author-instance_method" title="#co_author (instance method)">- (Object) <strong>co_author</strong> </a>
192
-
193
-
194
-
195
- </span>
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
- <span class="summary_desc"><div class='inline'>
208
- <p>Returns the value of attribute co_author.</p>
209
- </div></span>
210
-
211
- </li>
212
-
213
-
214
- <li class="public ">
215
- <span class="summary_signature">
216
-
217
- <a href="#price-instance_method" title="#price (instance method)">- (Object) <strong>price</strong> </a>
218
-
219
-
220
-
221
- </span>
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- <span class="summary_desc"><div class='inline'>
234
- <p>Returns the value of attribute price.</p>
235
- </div></span>
236
-
237
- </li>
238
-
239
-
240
- <li class="public ">
241
- <span class="summary_signature">
242
-
243
- <a href="#published_on-instance_method" title="#published_on (instance method)">- (Object) <strong>published_on</strong> </a>
244
-
245
-
246
-
247
- </span>
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
- <span class="summary_desc"><div class='inline'>
260
- <p>Returns the value of attribute published_on.</p>
261
- </div></span>
262
-
263
- </li>
264
-
265
-
266
- <li class="public ">
267
- <span class="summary_signature">
268
-
269
- <a href="#signature-instance_method" title="#signature (instance method)">- (Object) <strong>signature</strong> </a>
270
-
271
-
272
-
273
- </span>
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
- <span class="summary_desc"><div class='inline'>
286
- <p>Returns the value of attribute signature.</p>
287
- </div></span>
288
-
289
- </li>
290
-
291
-
292
- <li class="public ">
293
- <span class="summary_signature">
294
-
295
- <a href="#title-instance_method" title="#title (instance method)">- (Object) <strong>title</strong> </a>
296
-
297
-
298
-
299
- </span>
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
- <span class="summary_desc"><div class='inline'>
312
- <p>Returns the value of attribute title.</p>
313
- </div></span>
314
-
315
- </li>
316
-
317
-
318
- <li class="public ">
319
- <span class="summary_signature">
320
-
321
- <a href="#visible-instance_method" title="#visible (instance method)">- (Object) <strong>visible</strong> </a>
322
-
323
-
324
-
325
- </span>
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
- <span class="summary_desc"><div class='inline'>
338
- <p>Returns the value of attribute visible.</p>
339
- </div></span>
340
-
341
- </li>
342
-
343
-
344
- </ul>
345
-
346
-
347
-
348
-
349
-
350
- <h2>
351
- Class Method Summary
352
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
353
- </h2>
354
-
355
- <ul class="summary">
356
-
357
- <li class="public ">
358
- <span class="summary_signature">
359
-
360
- <a href="#create-class_method" title="create (class method)">+ (Object) <strong>create</strong>(attributes = {}) </a>
361
-
362
-
363
-
364
- </span>
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
- <span class="summary_desc"><div class='inline'></div></span>
374
-
375
- </li>
376
-
377
-
378
- <li class="public ">
379
- <span class="summary_signature">
380
-
381
- <a href="#find-class_method" title="find (class method)">+ (Object) <strong>find</strong>(id) </a>
382
-
383
-
384
-
385
- </span>
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
- <span class="summary_desc"><div class='inline'></div></span>
395
-
396
- </li>
397
-
398
-
399
- </ul>
400
-
401
- <h2>
402
- Instance Method Summary
403
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
404
- </h2>
405
-
406
- <ul class="summary">
407
-
408
- <li class="public ">
409
- <span class="summary_signature">
410
-
411
- <a href="#id-instance_method" title="#id (instance method)">- (Object) <strong>id</strong> </a>
412
-
413
-
414
-
415
- </span>
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
- <span class="summary_desc"><div class='inline'></div></span>
425
-
426
- </li>
427
-
428
-
429
- <li class="public ">
430
- <span class="summary_signature">
431
-
432
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Post) <strong>initialize</strong>(attributes = {}) </a>
433
-
434
-
435
-
436
- </span>
437
-
438
- <span class="note title constructor">constructor</span>
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
- <span class="summary_desc"><div class='inline'>
448
- <p>A new instance of Post.</p>
449
- </div></span>
450
-
451
- </li>
452
-
453
-
454
- <li class="public ">
455
- <span class="summary_signature">
456
-
457
- <a href="#save%21-instance_method" title="#save! (instance method)">- (Object) <strong>save!</strong> </a>
458
-
459
-
460
-
461
- </span>
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
- <span class="summary_desc"><div class='inline'></div></span>
471
-
472
- </li>
473
-
474
-
475
- </ul>
476
-
477
-
478
-
479
-
480
- <div id="constructor_details" class="method_details_list">
481
- <h2>Constructor Details</h2>
482
-
483
- <div class="method_details first">
484
- <p class="signature first" id="initialize-instance_method">
485
-
486
- - (<tt><span class='object_link'><a href="" title="ElabsMatchers::Orm::Post (class)">Post</a></span></tt>) <strong>initialize</strong>(attributes = {})
487
-
488
-
489
-
490
- </p><div class="docstring">
491
- <div class="discussion">
492
-
493
- <p>A new instance of Post</p>
494
-
495
-
496
- </div>
497
- </div>
498
- <div class="tags">
499
-
500
-
501
- </div><table class="source_code">
502
- <tr>
503
- <td>
504
- <pre class="lines">
505
-
506
-
507
- 29
508
- 30
509
- 31
510
- 32
511
- 33</pre>
512
- </td>
513
- <td>
514
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 29</span>
515
-
516
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_attributes'>attributes</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
517
- <span class='id identifier rubyid_attributes'>attributes</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
518
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
519
- <span class='kw'>end</span>
520
- <span class='kw'>end</span></pre>
521
- </td>
522
- </tr>
523
- </table>
524
- </div>
525
-
526
- </div>
527
-
528
- <div id="instance_attr_details" class="attr_details">
529
- <h2>Instance Attribute Details</h2>
530
-
531
-
532
- <span id="authors=-instance_method"></span>
533
- <span id="authors-instance_method"></span>
534
- <div class="method_details first">
535
- <p class="signature first" id="authors-instance_method">
536
-
537
- - (<tt>Object</tt>) <strong>authors</strong>
538
-
539
-
540
-
541
- </p><div class="docstring">
542
- <div class="discussion">
543
-
544
- <p>Returns the value of attribute authors</p>
545
-
546
-
547
- </div>
548
- </div>
549
- <div class="tags">
550
-
551
-
552
- </div><table class="source_code">
553
- <tr>
554
- <td>
555
- <pre class="lines">
556
-
557
-
558
- 9
559
- 10
560
- 11</pre>
561
- </td>
562
- <td>
563
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
564
-
565
- <span class='kw'>def</span> <span class='id identifier rubyid_authors'>authors</span>
566
- <span class='ivar'>@authors</span>
567
- <span class='kw'>end</span></pre>
568
- </td>
569
- </tr>
570
- </table>
571
- </div>
572
-
573
-
574
- <span id="body=-instance_method"></span>
575
- <span id="body-instance_method"></span>
576
- <div class="method_details ">
577
- <p class="signature " id="body-instance_method">
578
-
579
- - (<tt>Object</tt>) <strong>body</strong>
580
-
581
-
582
-
583
- </p><div class="docstring">
584
- <div class="discussion">
585
-
586
- <p>Returns the value of attribute body</p>
587
-
588
-
589
- </div>
590
- </div>
591
- <div class="tags">
592
-
593
-
594
- </div><table class="source_code">
595
- <tr>
596
- <td>
597
- <pre class="lines">
598
-
599
-
600
- 9
601
- 10
602
- 11</pre>
603
- </td>
604
- <td>
605
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
606
-
607
- <span class='kw'>def</span> <span class='id identifier rubyid_body'>body</span>
608
- <span class='ivar'>@body</span>
609
- <span class='kw'>end</span></pre>
610
- </td>
611
- </tr>
612
- </table>
613
- </div>
614
-
615
-
616
- <span id="category=-instance_method"></span>
617
- <span id="category-instance_method"></span>
618
- <div class="method_details ">
619
- <p class="signature " id="category-instance_method">
620
-
621
- - (<tt>Object</tt>) <strong>category</strong>
622
-
623
-
624
-
625
- </p><div class="docstring">
626
- <div class="discussion">
627
-
628
- <p>Returns the value of attribute category</p>
629
-
630
-
631
- </div>
632
- </div>
633
- <div class="tags">
634
-
635
-
636
- </div><table class="source_code">
637
- <tr>
638
- <td>
639
- <pre class="lines">
640
-
641
-
642
- 9
643
- 10
644
- 11</pre>
645
- </td>
646
- <td>
647
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
648
-
649
- <span class='kw'>def</span> <span class='id identifier rubyid_category'>category</span>
650
- <span class='ivar'>@category</span>
651
- <span class='kw'>end</span></pre>
652
- </td>
653
- </tr>
654
- </table>
655
- </div>
656
-
657
-
658
- <span id="co_author=-instance_method"></span>
659
- <span id="co_author-instance_method"></span>
660
- <div class="method_details ">
661
- <p class="signature " id="co_author-instance_method">
662
-
663
- - (<tt>Object</tt>) <strong>co_author</strong>
664
-
665
-
666
-
667
- </p><div class="docstring">
668
- <div class="discussion">
669
-
670
- <p>Returns the value of attribute co_author</p>
671
-
672
-
673
- </div>
674
- </div>
675
- <div class="tags">
676
-
677
-
678
- </div><table class="source_code">
679
- <tr>
680
- <td>
681
- <pre class="lines">
682
-
683
-
684
- 9
685
- 10
686
- 11</pre>
687
- </td>
688
- <td>
689
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
690
-
691
- <span class='kw'>def</span> <span class='id identifier rubyid_co_author'>co_author</span>
692
- <span class='ivar'>@co_author</span>
693
- <span class='kw'>end</span></pre>
694
- </td>
695
- </tr>
696
- </table>
697
- </div>
698
-
699
-
700
- <span id="price=-instance_method"></span>
701
- <span id="price-instance_method"></span>
702
- <div class="method_details ">
703
- <p class="signature " id="price-instance_method">
704
-
705
- - (<tt>Object</tt>) <strong>price</strong>
706
-
707
-
708
-
709
- </p><div class="docstring">
710
- <div class="discussion">
711
-
712
- <p>Returns the value of attribute price</p>
713
-
714
-
715
- </div>
716
- </div>
717
- <div class="tags">
718
-
719
-
720
- </div><table class="source_code">
721
- <tr>
722
- <td>
723
- <pre class="lines">
724
-
725
-
726
- 9
727
- 10
728
- 11</pre>
729
- </td>
730
- <td>
731
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
732
-
733
- <span class='kw'>def</span> <span class='id identifier rubyid_price'>price</span>
734
- <span class='ivar'>@price</span>
735
- <span class='kw'>end</span></pre>
736
- </td>
737
- </tr>
738
- </table>
739
- </div>
740
-
741
-
742
- <span id="published_on=-instance_method"></span>
743
- <span id="published_on-instance_method"></span>
744
- <div class="method_details ">
745
- <p class="signature " id="published_on-instance_method">
746
-
747
- - (<tt>Object</tt>) <strong>published_on</strong>
748
-
749
-
750
-
751
- </p><div class="docstring">
752
- <div class="discussion">
753
-
754
- <p>Returns the value of attribute published_on</p>
755
-
756
-
757
- </div>
758
- </div>
759
- <div class="tags">
760
-
761
-
762
- </div><table class="source_code">
763
- <tr>
764
- <td>
765
- <pre class="lines">
766
-
767
-
768
- 9
769
- 10
770
- 11</pre>
771
- </td>
772
- <td>
773
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
774
-
775
- <span class='kw'>def</span> <span class='id identifier rubyid_published_on'>published_on</span>
776
- <span class='ivar'>@published_on</span>
777
- <span class='kw'>end</span></pre>
778
- </td>
779
- </tr>
780
- </table>
781
- </div>
782
-
783
-
784
- <span id="signature=-instance_method"></span>
785
- <span id="signature-instance_method"></span>
786
- <div class="method_details ">
787
- <p class="signature " id="signature-instance_method">
788
-
789
- - (<tt>Object</tt>) <strong>signature</strong>
790
-
791
-
792
-
793
- </p><div class="docstring">
794
- <div class="discussion">
795
-
796
- <p>Returns the value of attribute signature</p>
797
-
798
-
799
- </div>
800
- </div>
801
- <div class="tags">
802
-
803
-
804
- </div><table class="source_code">
805
- <tr>
806
- <td>
807
- <pre class="lines">
808
-
809
-
810
- 9
811
- 10
812
- 11</pre>
813
- </td>
814
- <td>
815
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
816
-
817
- <span class='kw'>def</span> <span class='id identifier rubyid_signature'>signature</span>
818
- <span class='ivar'>@signature</span>
819
- <span class='kw'>end</span></pre>
820
- </td>
821
- </tr>
822
- </table>
823
- </div>
824
-
825
-
826
- <span id="title=-instance_method"></span>
827
- <span id="title-instance_method"></span>
828
- <div class="method_details ">
829
- <p class="signature " id="title-instance_method">
830
-
831
- - (<tt>Object</tt>) <strong>title</strong>
832
-
833
-
834
-
835
- </p><div class="docstring">
836
- <div class="discussion">
837
-
838
- <p>Returns the value of attribute title</p>
839
-
840
-
841
- </div>
842
- </div>
843
- <div class="tags">
844
-
845
-
846
- </div><table class="source_code">
847
- <tr>
848
- <td>
849
- <pre class="lines">
850
-
851
-
852
- 9
853
- 10
854
- 11</pre>
855
- </td>
856
- <td>
857
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
858
-
859
- <span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
860
- <span class='ivar'>@title</span>
861
- <span class='kw'>end</span></pre>
862
- </td>
863
- </tr>
864
- </table>
865
- </div>
866
-
867
-
868
- <span id="visible=-instance_method"></span>
869
- <span id="visible-instance_method"></span>
870
- <div class="method_details ">
871
- <p class="signature " id="visible-instance_method">
872
-
873
- - (<tt>Object</tt>) <strong>visible</strong>
874
-
875
-
876
-
877
- </p><div class="docstring">
878
- <div class="discussion">
879
-
880
- <p>Returns the value of attribute visible</p>
881
-
882
-
883
- </div>
884
- </div>
885
- <div class="tags">
886
-
887
-
888
- </div><table class="source_code">
889
- <tr>
890
- <td>
891
- <pre class="lines">
892
-
893
-
894
- 9
895
- 10
896
- 11</pre>
897
- </td>
898
- <td>
899
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 9</span>
900
-
901
- <span class='kw'>def</span> <span class='id identifier rubyid_visible'>visible</span>
902
- <span class='ivar'>@visible</span>
903
- <span class='kw'>end</span></pre>
904
- </td>
905
- </tr>
906
- </table>
907
- </div>
908
-
909
- </div>
910
-
911
-
912
- <div id="class_method_details" class="method_details_list">
913
- <h2>Class Method Details</h2>
914
-
915
-
916
- <div class="method_details first">
917
- <p class="signature first" id="create-class_method">
918
-
919
- + (<tt>Object</tt>) <strong>create</strong>(attributes = {})
920
-
921
-
922
-
923
- </p><table class="source_code">
924
- <tr>
925
- <td>
926
- <pre class="lines">
927
-
928
-
929
- 24
930
- 25
931
- 26</pre>
932
- </td>
933
- <td>
934
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 24</span>
935
-
936
- <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_attributes'>attributes</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
937
- <span class='cvar'>@@persisted_post</span> <span class='op'>=</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_attributes'>attributes</span><span class='rparen'>)</span>
938
- <span class='kw'>end</span></pre>
939
- </td>
940
- </tr>
941
- </table>
942
- </div>
943
-
944
- <div class="method_details ">
945
- <p class="signature " id="find-class_method">
946
-
947
- + (<tt>Object</tt>) <strong>find</strong>(id)
948
-
949
-
950
-
951
- </p><table class="source_code">
952
- <tr>
953
- <td>
954
- <pre class="lines">
955
-
956
-
957
- 20
958
- 21
959
- 22</pre>
960
- </td>
961
- <td>
962
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 20</span>
963
-
964
- <span class='kw'>def</span> <span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
965
- <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:title</span> <span class='op'>=&gt;</span> <span class='cvar'>@@persisted_post</span><span class='period'>.</span><span class='id identifier rubyid_title'>title</span><span class='rparen'>)</span>
966
- <span class='kw'>end</span></pre>
967
- </td>
968
- </tr>
969
- </table>
970
- </div>
971
-
972
- </div>
973
-
974
- <div id="instance_method_details" class="method_details_list">
975
- <h2>Instance Method Details</h2>
976
-
977
-
978
- <div class="method_details first">
979
- <p class="signature first" id="id-instance_method">
980
-
981
- - (<tt>Object</tt>) <strong>id</strong>
982
-
983
-
984
-
985
- </p><table class="source_code">
986
- <tr>
987
- <td>
988
- <pre class="lines">
989
-
990
-
991
- 38
992
- 39</pre>
993
- </td>
994
- <td>
995
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 38</span>
996
-
997
- <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
998
- <span class='kw'>end</span></pre>
999
- </td>
1000
- </tr>
1001
- </table>
1002
- </div>
1003
-
1004
- <div class="method_details ">
1005
- <p class="signature " id="save!-instance_method">
1006
-
1007
- - (<tt>Object</tt>) <strong>save!</strong>
1008
-
1009
-
1010
-
1011
- </p><table class="source_code">
1012
- <tr>
1013
- <td>
1014
- <pre class="lines">
1015
-
1016
-
1017
- 35
1018
- 36</pre>
1019
- </td>
1020
- <td>
1021
- <pre class="code"><span class="info file"># File 'lib/elabs_matchers/orm/post.rb', line 35</span>
1022
-
1023
- <span class='kw'>def</span> <span class='id identifier rubyid_save!'>save!</span>
1024
- <span class='kw'>end</span></pre>
1025
- </td>
1026
- </tr>
1027
- </table>
1028
- </div>
1029
-
1030
- </div>
1031
-
1032
- </div>
1033
-
1034
- <div id="footer">
1035
- Generated on Fri Feb 17 16:29:16 2012 by
1036
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1037
- 0.7.5 (ruby-1.9.3).
1038
- </div>
1039
-
1040
- </body>
1041
- </html>