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
data/doc/file.README.html CHANGED
@@ -1,23 +1,22 @@
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">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.2.1
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
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" media="screen" charset="utf-8" />
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
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "README";
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
21
20
  </script>
22
21
 
23
22
 
@@ -28,154 +27,159 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="file_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</a> &raquo;
35
40
  <span class="title">File: README</span>
36
41
 
37
-
38
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
42
  </div>
40
43
 
41
- <div id="search">
44
+ <div id="search">
42
45
 
43
46
  <a class="full_list_link" id="class_list_link"
44
47
  href="class_list.html">
45
- Class List
46
- </a>
47
-
48
- <a class="full_list_link" id="method_list_link"
49
- href="method_list.html">
50
- Method List
51
- </a>
52
-
53
- <a class="full_list_link" id="file_list_link"
54
- href="file_list.html">
55
- File List
48
+
49
+ <svg width="24" height="24">
50
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
51
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
52
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
53
+ </svg>
56
54
  </a>
57
55
 
58
56
  </div>
59
- <div class="clear"></div>
60
- </div>
57
+ <div class="clear"></div>
58
+ </div>
61
59
 
62
- <iframe id="search_frame"></iframe>
60
+ <div id="content"><div id='filecontents'>
61
+ <h1 id="label-Elabs+matchers">Elabs matchers</h1>
63
62
 
64
- <div id="content"><div id='filecontents'><h1>Elabs matchers</h1>
63
+ <p><a href="http://travis-ci.org/elabs/elabs_matchers"><img
64
+ src="https://secure.travis-ci.org/elabs/elabs_matchers.png"></a></p>
65
65
 
66
- <p><a href="http://travis-ci.org/elabs/elabs_matchers"><img src="https://secure.travis-ci.org/elabs/elabs_matchers.png" alt="Build Status"></a></p>
66
+ <p>Elabs matchers aims to extend existing rspec matchers from e.g Rspec,
67
+ Rspec-rails and Capybara with a set of less generic once. This could be
68
+ things like asserting a table appearing in a certain way or check that an
69
+ active record instance has been successfully persisted after an update.</p>
67
70
 
68
- <p>Elabs matchers aims to extend existing rspec matchers from e.g Rspec, Rspec-rails and Capybara with a set
69
- of less generic once. This could be things like asserting a table appearing in a certain way or check that
70
- an active record instance has been successfully persisted after an update.</p>
71
+ <p>It is important to know that this gem aims to extend rspec / capybara with
72
+ more matchers. If functionality in either of theses makes any of elabs
73
+ matchers&#39; matchers obsolete they will be deprecated and removed from
74
+ elabs matchers.</p>
71
75
 
72
- <p>It is important to know that this gem aims to extend rspec / capybara with more matchers. If functionality in either of theses
73
- makes any of elabs matchers&#39; matchers obsolete they will be deprecated and removed from elabs matchers.</p>
76
+ <p>Below follows a list of matchers that the gem bundles. To get documentation
77
+ about each matcher the source code is your best friend at this point.</p>
74
78
 
75
- <p>Below follows a list of matchers that the gem bundles. To get documentation about each matcher the source code is
76
- your bast friend at this point.</p>
77
-
78
- <h2>Setup</h2>
79
+ <h2 id="label-Setup">Setup</h2>
79
80
 
80
81
  <p>add elabs_matchers to your Gemfile:</p>
81
82
 
82
- <pre class="code ruby"><code><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>elabs_matchers</span><span class='tstring_end'>&quot;</span></span>
83
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>elabs_matchers</span><span class='tstring_end'>&quot;</span></span>
83
84
  </code></pre>
84
85
 
85
- <h3>Model matchers:</h3>
86
+ <h3 id="label-Model+matchers-3A">Model matchers:</h3>
86
87
 
87
- <pre class="code ruby"><code><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_allow'>allow</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Blog post</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_as'>as</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='rparen'>)</span>
88
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_be_valid_with'>be_valid_with</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Blog post</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_as'>as</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='rparen'>)</span>
88
89
  <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_contain_hash'>contain_hash</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>baz</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bar</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span><span class='rparen'>)</span>
89
90
  <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_only_include'>only_include</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bar</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>foo</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
90
91
  <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_persist'>persist</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Blog post</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
91
92
  </code></pre>
92
93
 
93
- <h3>Model helpers:</h3>
94
+ <h3 id="label-Model+helpers-3A">Model helpers:</h3>
94
95
 
95
- <pre class="code ruby"><code><span class='id identifier rubyid_reload'>reload</span><span class='lparen'>(</span><span class='id identifier rubyid_post'>post</span><span class='rparen'>)</span>
96
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_reload'>reload</span><span class='lparen'>(</span><span class='id identifier rubyid_post'>post</span><span class='rparen'>)</span>
96
97
  <span class='id identifier rubyid_save_and_reload'>save_and_reload</span><span class='lparen'>(</span><span class='id identifier rubyid_post'>post</span><span class='rparen'>)</span>
97
98
  </code></pre>
98
99
 
99
- <h3>Acceptance matchers:</h3>
100
+ <h3 id="label-Acceptance+matchers-3A">Acceptance matchers:</h3>
100
101
 
101
- <pre class="code ruby"><code><span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_flash_notice'>have_flash_notice</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Success</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
102
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_flash_notice'>have_flash_notice</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Success</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
102
103
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_flash_alert'>have_flash_alert</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Error</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
103
- <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_form_errors_on'>have_form_errors_on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Name</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Can't be blank</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
104
+ <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_form_errors_on'>have_form_errors_on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Name</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Can&#39;t be blank</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
104
105
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_header'>have_header</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Elabs</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
105
106
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_image'>have_image</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Logo</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
106
107
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_fields'>have_fields</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Author</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Adam</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Year</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2011</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
107
- <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_table_row'>have_table_row</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Posts</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Title</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:year</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2012</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
108
- <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_attribute'>have_attribute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Status</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Pending</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
108
+ <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_table_row'>have_table_row</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Posts</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Title</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:year</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2012</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='comment'># Moved to https://github.com/jnicklas/capybara_table
109
+ </span><span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_attribute'>have_attribute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Status</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Pending</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
109
110
  </code></pre>
110
111
 
111
- <h3>Acceptance helpers:</h3>
112
+ <h3 id="label-Acceptance+helpers-3A">Acceptance helpers:</h3>
112
113
 
113
- <pre class="code ruby"><code><span class='id identifier rubyid_select_year_and_month'>select_year_and_month</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2010</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>March</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:from</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Birth date</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
114
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_select_year_and_month'>select_year_and_month</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2010</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>March</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:from</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Birth date</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
114
115
  </code></pre>
115
116
 
116
- <h3>Common helpers:</h3>
117
+ <h3 id="label-Common+helpers-3A">Common helpers:</h3>
117
118
 
118
- <pre class="code ruby"><code><span class='id identifier rubyid_normalize_keys'>normalize_keys</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First name</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Adam</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span><span class='rparen'>)</span>
119
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_normalize_keys'>normalize_keys</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First name</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Adam</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span><span class='rparen'>)</span>
119
120
  <span class='id identifier rubyid_fixture_file'>fixture_file</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>file.txt</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
120
121
  </code></pre>
121
122
 
122
- <h2>Configuration</h2>
123
+ <h2 id="label-Configuration">Configuration</h2>
123
124
 
124
125
  <p>Matchers can be configured in e.g your spec_helper.rb-file:</p>
125
126
 
126
- <pre class="code ruby"><code><span class='const'>ElabsMatchers</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
127
+ <pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'><span class='object_link'><a href="ElabsMatchers.html#configure-class_method" title="ElabsMatchers.configure (method)">configure</a></span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
127
128
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_header_selector'>header_selector</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>//h1</span><span class='tstring_end'>&quot;</span></span>
128
129
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_header_selector_type'>header_selector_type</span> <span class='op'>=</span> <span class='symbol'>:xpath</span>
129
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_selector'>image_selector</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_src'>src</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>img[src='</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_src'>src</span><span class='rbrace'>}</span><span class='tstring_content'>']</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
130
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_selector'>image_selector</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_src'>src</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>img[src=&#39;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_src'>src</span><span class='embexpr_end'>}</span><span class='tstring_content'>&#39;]</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
130
131
  <span class='kw'>end</span>
131
132
  </code></pre>
132
133
 
133
- <p>See <a href="https://github.com/elabs/elabs_matchers/blob/master/lib/elabs_matchers.rb">elabs_matchers.rb</a></p>
134
+ <p>See <a
135
+ href="https://github.com/elabs/elabs_matchers/blob/master/lib/elabs_matchers.rb">elabs_matchers.rb</a></p>
134
136
 
135
- <h2>More</h2>
137
+ <h2 id="label-More">More</h2>
136
138
 
137
- <p>The gem includes YARD documentation which can be read with any browser.
138
- The gem&#39;s test suite should also serve as detailed documentation for each matcher and helper.</p>
139
+ <p>The gem includes YARD documentation which can be read with any browser. The
140
+ gem&#39;s test suite should also serve as detailed documentation for each
141
+ matcher and helper.</p>
139
142
 
140
- <h2>Development</h2>
143
+ <h2 id="label-Development">Development</h2>
141
144
 
142
- <p>See <a href="https://github.com/elabs/elabs_matchers/blob/master/development.rb">devlopment.txt</a></p>
145
+ <p>See <a
146
+ href="https://github.com/elabs/elabs_matchers/blob/master/development.rb">devlopment.txt</a></p>
143
147
 
144
- <h2>Contributors</h2>
148
+ <h2 id="label-Contributors">Contributors</h2>
145
149
 
146
150
  <p>So far the code base is a joined effort by everyone at Elabs.</p>
147
151
 
148
- <h2>License:</h2>
152
+ <h2 id="label-License-3A">License:</h2>
149
153
 
150
154
  <p>(The MIT License)</p>
151
155
 
152
- <p>Copyright (c) 2012 Elabs AB</p>
153
-
154
- <p>Permission is hereby granted, free of charge, to any person obtaining
155
- a copy of this software and associated documentation files (the
156
- &quot;Software&quot;), to deal in the Software without restriction, including
157
- without limitation the rights to use, copy, modify, merge, publish,
158
- distribute, sublicense, and/or sell copies of the Software, and to
159
- permit persons to whom the Software is furnished to do so, subject to
160
- the following conditions:</p>
161
-
162
- <p>The above copyright notice and this permission notice shall be
163
- included in all copies or substantial portions of the Software.</p>
164
-
165
- <p>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
166
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
167
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
168
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
169
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
170
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
171
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
156
+ <p>Copyright © 2012 Elabs AB</p>
157
+
158
+ <p>Permission is hereby granted, free of charge, to any person obtaining a
159
+ copy of this software and associated documentation files (the “Software”),
160
+ to deal in the Software without restriction, including without limitation
161
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
162
+ and/or sell copies of the Software, and to permit persons to whom the
163
+ Software is furnished to do so, subject to the following conditions:</p>
164
+
165
+ <p>The above copyright notice and this permission notice shall be included in
166
+ all copies or substantial portions of the Software.</p>
167
+
168
+ <p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
169
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
170
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
171
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
172
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
173
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
174
+ DEALINGS IN THE SOFTWARE.</p>
172
175
  </div></div>
173
176
 
174
- <div id="footer">
175
- Generated on Wed Sep 19 15:04:26 2012 by
177
+ <div id="footer">
178
+ Generated on Wed Mar 14 09:56:36 2018 by
176
179
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
177
- 0.8.2.1 (ruby-1.9.3).
180
+ 0.9.12 (ruby-2.4.1).
178
181
  </div>
179
182
 
183
+ </div>
180
184
  </body>
181
185
  </html>
data/doc/file_list.html CHANGED
@@ -1,8 +1,8 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1
+ <!DOCTYPE html>
3
2
  <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <meta charset="utf-8" />
6
6
 
7
7
  <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
8
 
@@ -15,40 +15,41 @@
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
17
 
18
+ <title>File List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
21
- <script type="text/javascript" charset="utf-8">
22
- if (window.top.frames.main) {
23
- document.getElementById('base_target').target = 'main';
24
- document.body.className = 'frames';
25
- }
26
- </script>
27
22
  <div id="content">
28
- <h1 id="full_list_header">File List</h1>
29
- <div id="nav">
30
-
31
- <span><a target="_self" href="class_list.html">
32
- Classes
33
- </a></span>
34
-
35
- <span><a target="_self" href="method_list.html">
36
- Methods
37
- </a></span>
38
-
39
- <span><a target="_self" href="file_list.html">
40
- Files
41
- </a></span>
42
-
23
+ <div class="fixed_header">
24
+ <h1 id="full_list_header">File List</h1>
25
+ <div id="full_list_nav">
26
+
27
+ <span><a target="_self" href="class_list.html">
28
+ Classes
29
+ </a></span>
30
+
31
+ <span><a target="_self" href="method_list.html">
32
+ Methods
33
+ </a></span>
34
+
35
+ <span><a target="_self" href="file_list.html">
36
+ Files
37
+ </a></span>
38
+
39
+ </div>
40
+
41
+ <div id="search">Search: <input type="text" /></div>
43
42
  </div>
44
- <div id="search">Search: <input type="text" /></div>
45
43
 
46
44
  <ul id="full_list" class="file">
47
45
 
48
46
 
49
- <li class="r1"><a href="index.html" title="README">README</a></li>
47
+ <li id="object_README" class="odd">
48
+ <div class="item"><span class="object_link"><a href="index.html" title="README">README</a></span></div>
49
+ </li>
50
50
 
51
51
 
52
+
52
53
  </ul>
53
54
  </div>
54
55
  </body>
data/doc/frames.html CHANGED
@@ -1,28 +1,17 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
5
3
  <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
- <title>Documentation by YARD 0.8.2.1</title>
4
+ <meta charset="utf-8">
5
+ <title>Documentation by YARD 0.9.12</title>
8
6
  </head>
9
7
  <script type="text/javascript" charset="utf-8">
10
- window.onload = function() {
11
- var match = window.location.hash.match(/^#!(.+)/);
12
- var name = 'index.html';
13
- if (match) {
14
- name = unescape(match[1]);
15
- }
16
- document.writeln('<frameset cols="20%,*">' +
17
- '<frame name="list" src="class_list.html" />' +
18
- '<frame name="main" src="' + name + '" />' +
19
- '</frameset>');
20
- }
8
+ var match = unescape(window.location.hash).match(/^#!(.+)/);
9
+ var name = match ? match[1] : 'index.html';
10
+ name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
11
+ window.top.location = name;
21
12
  </script>
22
13
  <noscript>
23
- <frameset cols="20%,*">
24
- <frame name="list" src="class_list.html" />
25
- <frame name="main" src="index.html" />
26
- </frameset>
14
+ <h1>Oops!</h1>
15
+ <h2>YARD requires JavaScript!</h2>
27
16
  </noscript>
28
17
  </html>
data/doc/index.html CHANGED
@@ -1,23 +1,22 @@
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">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.2.1
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
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" media="screen" charset="utf-8" />
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
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "README";
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
21
20
  </script>
22
21
 
23
22
 
@@ -28,154 +27,159 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
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</a> &raquo;
35
40
  <span class="title">File: README</span>
36
41
 
37
-
38
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
42
  </div>
40
43
 
41
- <div id="search">
44
+ <div id="search">
42
45
 
43
46
  <a class="full_list_link" id="class_list_link"
44
47
  href="class_list.html">
45
- Class List
46
- </a>
47
-
48
- <a class="full_list_link" id="method_list_link"
49
- href="method_list.html">
50
- Method List
51
- </a>
52
-
53
- <a class="full_list_link" id="file_list_link"
54
- href="file_list.html">
55
- File List
48
+
49
+ <svg width="24" height="24">
50
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
51
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
52
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
53
+ </svg>
56
54
  </a>
57
55
 
58
56
  </div>
59
- <div class="clear"></div>
60
- </div>
57
+ <div class="clear"></div>
58
+ </div>
61
59
 
62
- <iframe id="search_frame"></iframe>
60
+ <div id="content"><div id='filecontents'>
61
+ <h1 id="label-Elabs+matchers">Elabs matchers</h1>
63
62
 
64
- <div id="content"><div id='filecontents'><h1>Elabs matchers</h1>
63
+ <p><a href="http://travis-ci.org/elabs/elabs_matchers"><img
64
+ src="https://secure.travis-ci.org/elabs/elabs_matchers.png"></a></p>
65
65
 
66
- <p><a href="http://travis-ci.org/elabs/elabs_matchers"><img src="https://secure.travis-ci.org/elabs/elabs_matchers.png" alt="Build Status"></a></p>
66
+ <p>Elabs matchers aims to extend existing rspec matchers from e.g Rspec,
67
+ Rspec-rails and Capybara with a set of less generic once. This could be
68
+ things like asserting a table appearing in a certain way or check that an
69
+ active record instance has been successfully persisted after an update.</p>
67
70
 
68
- <p>Elabs matchers aims to extend existing rspec matchers from e.g Rspec, Rspec-rails and Capybara with a set
69
- of less generic once. This could be things like asserting a table appearing in a certain way or check that
70
- an active record instance has been successfully persisted after an update.</p>
71
+ <p>It is important to know that this gem aims to extend rspec / capybara with
72
+ more matchers. If functionality in either of theses makes any of elabs
73
+ matchers&#39; matchers obsolete they will be deprecated and removed from
74
+ elabs matchers.</p>
71
75
 
72
- <p>It is important to know that this gem aims to extend rspec / capybara with more matchers. If functionality in either of theses
73
- makes any of elabs matchers&#39; matchers obsolete they will be deprecated and removed from elabs matchers.</p>
76
+ <p>Below follows a list of matchers that the gem bundles. To get documentation
77
+ about each matcher the source code is your best friend at this point.</p>
74
78
 
75
- <p>Below follows a list of matchers that the gem bundles. To get documentation about each matcher the source code is
76
- your bast friend at this point.</p>
77
-
78
- <h2>Setup</h2>
79
+ <h2 id="label-Setup">Setup</h2>
79
80
 
80
81
  <p>add elabs_matchers to your Gemfile:</p>
81
82
 
82
- <pre class="code ruby"><code><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>elabs_matchers</span><span class='tstring_end'>&quot;</span></span>
83
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>elabs_matchers</span><span class='tstring_end'>&quot;</span></span>
83
84
  </code></pre>
84
85
 
85
- <h3>Model matchers:</h3>
86
+ <h3 id="label-Model+matchers-3A">Model matchers:</h3>
86
87
 
87
- <pre class="code ruby"><code><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_allow'>allow</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Blog post</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_as'>as</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='rparen'>)</span>
88
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_be_valid_with'>be_valid_with</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Blog post</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_as'>as</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='rparen'>)</span>
88
89
  <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_contain_hash'>contain_hash</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>baz</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bar</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span><span class='rparen'>)</span>
89
90
  <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_only_include'>only_include</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bar</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>foo</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
90
91
  <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_persist'>persist</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Blog post</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
91
92
  </code></pre>
92
93
 
93
- <h3>Model helpers:</h3>
94
+ <h3 id="label-Model+helpers-3A">Model helpers:</h3>
94
95
 
95
- <pre class="code ruby"><code><span class='id identifier rubyid_reload'>reload</span><span class='lparen'>(</span><span class='id identifier rubyid_post'>post</span><span class='rparen'>)</span>
96
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_reload'>reload</span><span class='lparen'>(</span><span class='id identifier rubyid_post'>post</span><span class='rparen'>)</span>
96
97
  <span class='id identifier rubyid_save_and_reload'>save_and_reload</span><span class='lparen'>(</span><span class='id identifier rubyid_post'>post</span><span class='rparen'>)</span>
97
98
  </code></pre>
98
99
 
99
- <h3>Acceptance matchers:</h3>
100
+ <h3 id="label-Acceptance+matchers-3A">Acceptance matchers:</h3>
100
101
 
101
- <pre class="code ruby"><code><span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_flash_notice'>have_flash_notice</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Success</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
102
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_flash_notice'>have_flash_notice</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Success</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
102
103
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_flash_alert'>have_flash_alert</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Error</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
103
- <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_form_errors_on'>have_form_errors_on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Name</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Can't be blank</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
104
+ <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_form_errors_on'>have_form_errors_on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Name</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Can&#39;t be blank</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
104
105
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_header'>have_header</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Elabs</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
105
106
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_image'>have_image</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Logo</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
106
107
  <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_fields'>have_fields</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Author</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Adam</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Year</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2011</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
107
- <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_table_row'>have_table_row</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Posts</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Title</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:year</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2012</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
108
- <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_attribute'>have_attribute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Status</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Pending</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
108
+ <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_table_row'>have_table_row</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Posts</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Title</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:year</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2012</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='comment'># Moved to https://github.com/jnicklas/capybara_table
109
+ </span><span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_should'>should</span> <span class='id identifier rubyid_have_attribute'>have_attribute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Status</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Pending</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
109
110
  </code></pre>
110
111
 
111
- <h3>Acceptance helpers:</h3>
112
+ <h3 id="label-Acceptance+helpers-3A">Acceptance helpers:</h3>
112
113
 
113
- <pre class="code ruby"><code><span class='id identifier rubyid_select_year_and_month'>select_year_and_month</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2010</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>March</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:from</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Birth date</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
114
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_select_year_and_month'>select_year_and_month</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2010</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>March</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:from</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Birth date</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
114
115
  </code></pre>
115
116
 
116
- <h3>Common helpers:</h3>
117
+ <h3 id="label-Common+helpers-3A">Common helpers:</h3>
117
118
 
118
- <pre class="code ruby"><code><span class='id identifier rubyid_normalize_keys'>normalize_keys</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First name</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Adam</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span><span class='rparen'>)</span>
119
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_normalize_keys'>normalize_keys</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>First name</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Adam</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span><span class='rparen'>)</span>
119
120
  <span class='id identifier rubyid_fixture_file'>fixture_file</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>file.txt</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
120
121
  </code></pre>
121
122
 
122
- <h2>Configuration</h2>
123
+ <h2 id="label-Configuration">Configuration</h2>
123
124
 
124
125
  <p>Matchers can be configured in e.g your spec_helper.rb-file:</p>
125
126
 
126
- <pre class="code ruby"><code><span class='const'>ElabsMatchers</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
127
+ <pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'><span class='object_link'><a href="ElabsMatchers.html#configure-class_method" title="ElabsMatchers.configure (method)">configure</a></span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
127
128
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_header_selector'>header_selector</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>//h1</span><span class='tstring_end'>&quot;</span></span>
128
129
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_header_selector_type'>header_selector_type</span> <span class='op'>=</span> <span class='symbol'>:xpath</span>
129
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_selector'>image_selector</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_src'>src</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>img[src='</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_src'>src</span><span class='rbrace'>}</span><span class='tstring_content'>']</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
130
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_selector'>image_selector</span> <span class='op'>=</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_src'>src</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>img[src=&#39;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_src'>src</span><span class='embexpr_end'>}</span><span class='tstring_content'>&#39;]</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
130
131
  <span class='kw'>end</span>
131
132
  </code></pre>
132
133
 
133
- <p>See <a href="https://github.com/elabs/elabs_matchers/blob/master/lib/elabs_matchers.rb">elabs_matchers.rb</a></p>
134
+ <p>See <a
135
+ href="https://github.com/elabs/elabs_matchers/blob/master/lib/elabs_matchers.rb">elabs_matchers.rb</a></p>
134
136
 
135
- <h2>More</h2>
137
+ <h2 id="label-More">More</h2>
136
138
 
137
- <p>The gem includes YARD documentation which can be read with any browser.
138
- The gem&#39;s test suite should also serve as detailed documentation for each matcher and helper.</p>
139
+ <p>The gem includes YARD documentation which can be read with any browser. The
140
+ gem&#39;s test suite should also serve as detailed documentation for each
141
+ matcher and helper.</p>
139
142
 
140
- <h2>Development</h2>
143
+ <h2 id="label-Development">Development</h2>
141
144
 
142
- <p>See <a href="https://github.com/elabs/elabs_matchers/blob/master/development.rb">devlopment.txt</a></p>
145
+ <p>See <a
146
+ href="https://github.com/elabs/elabs_matchers/blob/master/development.rb">devlopment.txt</a></p>
143
147
 
144
- <h2>Contributors</h2>
148
+ <h2 id="label-Contributors">Contributors</h2>
145
149
 
146
150
  <p>So far the code base is a joined effort by everyone at Elabs.</p>
147
151
 
148
- <h2>License:</h2>
152
+ <h2 id="label-License-3A">License:</h2>
149
153
 
150
154
  <p>(The MIT License)</p>
151
155
 
152
- <p>Copyright (c) 2012 Elabs AB</p>
153
-
154
- <p>Permission is hereby granted, free of charge, to any person obtaining
155
- a copy of this software and associated documentation files (the
156
- &quot;Software&quot;), to deal in the Software without restriction, including
157
- without limitation the rights to use, copy, modify, merge, publish,
158
- distribute, sublicense, and/or sell copies of the Software, and to
159
- permit persons to whom the Software is furnished to do so, subject to
160
- the following conditions:</p>
161
-
162
- <p>The above copyright notice and this permission notice shall be
163
- included in all copies or substantial portions of the Software.</p>
164
-
165
- <p>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
166
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
167
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
168
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
169
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
170
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
171
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
156
+ <p>Copyright © 2012 Elabs AB</p>
157
+
158
+ <p>Permission is hereby granted, free of charge, to any person obtaining a
159
+ copy of this software and associated documentation files (the “Software”),
160
+ to deal in the Software without restriction, including without limitation
161
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
162
+ and/or sell copies of the Software, and to permit persons to whom the
163
+ Software is furnished to do so, subject to the following conditions:</p>
164
+
165
+ <p>The above copyright notice and this permission notice shall be included in
166
+ all copies or substantial portions of the Software.</p>
167
+
168
+ <p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
169
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
170
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
171
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
172
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
173
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
174
+ DEALINGS IN THE SOFTWARE.</p>
172
175
  </div></div>
173
176
 
174
- <div id="footer">
175
- Generated on Wed Sep 19 15:04:26 2012 by
177
+ <div id="footer">
178
+ Generated on Wed Mar 14 09:56:36 2018 by
176
179
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
177
- 0.8.2.1 (ruby-1.9.3).
180
+ 0.9.12 (ruby-2.4.1).
178
181
  </div>
179
182
 
183
+ </div>
180
184
  </body>
181
185
  </html>