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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 764469411826ae33c1be2491791a22ac35d8e89687c989360cd69fdcc4588a54
|
4
|
+
data.tar.gz: 9d99ee28c4935b3dffada4cc265fdfbae3ef66b088ac814e68d6b1455a6f3c63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3ab4350c66faad2115534871c6cc207cf66dc6cb13cfde7a95e3d58f1ffbfa3a814aa48407303f5697bd27cc316a52ab5832570a441d35d3379bf175687d7d5
|
7
|
+
data.tar.gz: d3036201216b23d22fe9c735206a53c2c95ced67f5750d3b86c37489124c963f37205dccfdb9eb5aa39af411512334f7b6c125b38441112e6da5a5f3eb39e158
|
data/README.md
CHANGED
@@ -10,9 +10,7 @@ It is important to know that this gem aims to extend rspec / capybara with more
|
|
10
10
|
makes any of elabs matchers' matchers obsolete they will be deprecated and removed from elabs matchers.
|
11
11
|
|
12
12
|
Below follows a list of matchers that the gem bundles. To get documentation about each matcher the source code is
|
13
|
-
your
|
14
|
-
|
15
|
-
The gem's api should be consider subject to change on any level until version 1.0
|
13
|
+
your best friend at this point.
|
16
14
|
|
17
15
|
## Setup
|
18
16
|
|
@@ -26,7 +24,6 @@ gem "elabs_matchers"
|
|
26
24
|
```ruby
|
27
25
|
record.should be_valid_with("Blog post").as(:title)
|
28
26
|
hash.contain_hash({ "baz" => "bar" })
|
29
|
-
array.only_include("bar", "foo")
|
30
27
|
record.should persist(:title, "Blog post")
|
31
28
|
```
|
32
29
|
|
@@ -44,7 +41,7 @@ page.should have_form_errors_on("Name", "Can't be blank")
|
|
44
41
|
page.should have_header("Elabs")
|
45
42
|
page.should have_image("Logo")
|
46
43
|
page.should have_fields("Author" => "Adam", "Year" => "2011")
|
47
|
-
page.should have_table_row("Posts", "Title" => "First", :year => "2012")
|
44
|
+
page.should have_table_row("Posts", "Title" => "First", :year => "2012") # Moved to https://github.com/jnicklas/capybara_table
|
48
45
|
page.should have_attribute("Status", "Pending")
|
49
46
|
```
|
50
47
|
|
@@ -81,7 +78,7 @@ The gem's test suite should also serve as detailed documentation for each matche
|
|
81
78
|
|
82
79
|
## Development
|
83
80
|
|
84
|
-
See [
|
81
|
+
See [development.md](https://github.com/elabs/elabs_matchers/blob/master/development.md)
|
85
82
|
|
86
83
|
## Contributors
|
87
84
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
## Setting up:
|
2
|
-
|
2
|
+
|
3
3
|
1. Fork the gem
|
4
4
|
2. Clone you fork to your local machine
|
5
5
|
3. Run:
|
@@ -8,7 +8,7 @@
|
|
8
8
|
rspec
|
9
9
|
|
10
10
|
## Pull requests:
|
11
|
-
|
11
|
+
|
12
12
|
Pull requests are appreciated. Before submitting please consider the following:
|
13
13
|
|
14
14
|
* Public methods are documented.
|
@@ -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::Fixtures
|
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::Fixtures";
|
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 (F)</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">Fixtures</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::Fixtures
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Helpers::Fixtures
|
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</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="#fixture_file-instance_method" title="#fixture_file (instance method)"
|
104
|
+
<a href="#fixture_file-instance_method" title="#fixture_file (instance method)">#<strong>fixture_file</strong>(path) ⇒ 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="fixture_file-instance_method">
|
137
136
|
|
138
|
-
|
137
|
+
#<strong>fixture_file</strong>(path) ⇒ <tt>Object</tt>
|
139
138
|
|
140
139
|
|
141
140
|
|
@@ -146,7 +145,7 @@
|
|
146
145
|
|
147
146
|
<p>Opens a file from the fixtures directory.</p>
|
148
147
|
|
149
|
-
<p>Example: fixture_file(
|
148
|
+
<p>Example: fixture_file(“file.txt”)</p>
|
150
149
|
|
151
150
|
|
152
151
|
</div>
|
@@ -189,8 +188,8 @@
|
|
189
188
|
<pre class="code"><span class="info file"># File 'lib/elabs_matchers/helpers/fixtures.rb', line 15</span>
|
190
189
|
|
191
190
|
<span class='kw'>def</span> <span class='id identifier rubyid_fixture_file'>fixture_file</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
192
|
-
<span class='id identifier rubyid_root'>root</span> <span class='op'>=</span> <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> <span class='kw'>then</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_root'>root</span> <span class='kw'>else</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>../../../spec/</span><span class='tstring_end'>"</span></span> <span class='kw'>end</span>
|
193
|
-
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_root'>root</span><span class='
|
191
|
+
<span class='id identifier rubyid_root'><span class='object_link'><a href="../../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span> <span class='op'>=</span> <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> <span class='kw'>then</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_root'>root</span> <span class='kw'>else</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>../../../spec/</span><span class='tstring_end'>"</span></span> <span class='kw'>end</span>
|
192
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_root'><span class='object_link'><a href="../../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'>/fixtures/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
194
193
|
<span class='kw'>end</span></pre>
|
195
194
|
</td>
|
196
195
|
</tr>
|
@@ -201,11 +200,12 @@
|
|
201
200
|
|
202
201
|
</div>
|
203
202
|
|
204
|
-
|
205
|
-
Generated on Wed
|
203
|
+
<div id="footer">
|
204
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
206
205
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
207
|
-
0.
|
206
|
+
0.9.12 (ruby-2.4.1).
|
208
207
|
</div>
|
209
208
|
|
209
|
+
</div>
|
210
210
|
</body>
|
211
211
|
</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::NormalizeKeys
|
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::NormalizeKeys";
|
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 (N)</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">NormalizeKeys</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::NormalizeKeys
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Helpers::NormalizeKeys
|
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/normalize_keys.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="#normalize_keys-instance_method" title="#normalize_keys (instance method)"
|
104
|
+
<a href="#normalize_keys-instance_method" title="#normalize_keys (instance method)">#<strong>normalize_keys</strong>(hash) ⇒ Object </a>
|
106
105
|
|
107
106
|
|
108
107
|
|
@@ -136,7 +135,7 @@ manner.</p>
|
|
136
135
|
<div class="method_details first">
|
137
136
|
<h3 class="signature first" id="normalize_keys-instance_method">
|
138
137
|
|
139
|
-
|
138
|
+
#<strong>normalize_keys</strong>(hash) ⇒ <tt>Object</tt>
|
140
139
|
|
141
140
|
|
142
141
|
|
@@ -152,7 +151,7 @@ manner.</p>
|
|
152
151
|
|
153
152
|
<p># Or in a Cucumber table: Given the following people:</p>
|
154
153
|
|
155
|
-
<pre class="code ruby"><code>| First name | Last name |
|
154
|
+
<pre class="code ruby"><code class="ruby">| First name | Last name |
|
156
155
|
| Douglas | Adams |</code></pre>
|
157
156
|
|
158
157
|
|
@@ -199,7 +198,7 @@ manner.</p>
|
|
199
198
|
|
200
199
|
<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>
|
201
200
|
<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>
|
202
|
-
<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'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
201
|
+
<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='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
203
202
|
<span class='id identifier rubyid_new_hash'>new_hash</span>
|
204
203
|
<span class='kw'>end</span>
|
205
204
|
<span class='kw'>end</span></pre>
|
@@ -212,11 +211,12 @@ manner.</p>
|
|
212
211
|
|
213
212
|
</div>
|
214
213
|
|
215
|
-
|
216
|
-
Generated on Wed
|
214
|
+
<div id="footer">
|
215
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
217
216
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
218
|
-
0.
|
217
|
+
0.9.12 (ruby-2.4.1).
|
219
218
|
</div>
|
220
219
|
|
220
|
+
</div>
|
221
221
|
</body>
|
222
222
|
</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::ReloadRecord
|
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::ReloadRecord";
|
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 (R)</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">ReloadRecord</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::ReloadRecord
|
62
|
+
<div id="content"><h1>Module: ElabsMatchers::Helpers::ReloadRecord
|
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/reload_record.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="#reload-instance_method" title="#reload (instance method)"
|
104
|
+
<a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(record) ⇒ Object </a>
|
106
105
|
|
107
106
|
|
108
107
|
|
@@ -127,7 +126,7 @@ record.</p>
|
|
127
126
|
<li class="public ">
|
128
127
|
<span class="summary_signature">
|
129
128
|
|
130
|
-
<a href="#save_and_reload-instance_method" title="#save_and_reload (instance method)"
|
129
|
+
<a href="#save_and_reload-instance_method" title="#save_and_reload (instance method)">#<strong>save_and_reload</strong>(record) ⇒ Object </a>
|
131
130
|
|
132
131
|
|
133
132
|
|
@@ -161,7 +160,7 @@ for that record.</p>
|
|
161
160
|
<div class="method_details first">
|
162
161
|
<h3 class="signature first" id="reload-instance_method">
|
163
162
|
|
164
|
-
|
163
|
+
#<strong>reload</strong>(record) ⇒ <tt>Object</tt>
|
165
164
|
|
166
165
|
|
167
166
|
|
@@ -225,7 +224,7 @@ record.</p>
|
|
225
224
|
<div class="method_details ">
|
226
225
|
<h3 class="signature " id="save_and_reload-instance_method">
|
227
226
|
|
228
|
-
|
227
|
+
#<strong>save_and_reload</strong>(record) ⇒ <tt>Object</tt>
|
229
228
|
|
230
229
|
|
231
230
|
|
@@ -292,11 +291,12 @@ for that record.</p>
|
|
292
291
|
|
293
292
|
</div>
|
294
293
|
|
295
|
-
|
296
|
-
Generated on Wed
|
294
|
+
<div id="footer">
|
295
|
+
Generated on Wed Mar 14 09:56:36 2018 by
|
297
296
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
298
|
-
0.
|
297
|
+
0.9.12 (ruby-2.4.1).
|
299
298
|
</div>
|
300
299
|
|
300
|
+
</div>
|
301
301
|
</body>
|
302
302
|
</html>
|