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
data/lib/elabs_matchers.rb
CHANGED
@@ -21,7 +21,6 @@ module ElabsMatchers
|
|
21
21
|
require "elabs_matchers/matchers/have_form_errors_on"
|
22
22
|
require "elabs_matchers/matchers/have_header"
|
23
23
|
require "elabs_matchers/matchers/have_image"
|
24
|
-
require "elabs_matchers/matchers/have_table_row"
|
25
24
|
require "elabs_matchers/matchers/only_include"
|
26
25
|
require "elabs_matchers/matchers/persist"
|
27
26
|
|
@@ -4,6 +4,10 @@ describe ElabsMatchers::Matchers::OnlyInclude do
|
|
4
4
|
subject { %w[foo bar] }
|
5
5
|
|
6
6
|
describe "#only_include" do
|
7
|
+
before do
|
8
|
+
allow_any_instance_of(ElabsMatchers::Matchers::OnlyInclude::OnlyIncludeMatcher).to receive(:deprecated)
|
9
|
+
end
|
10
|
+
|
7
11
|
it "returns true when all the elements are passed in the wrong order" do
|
8
12
|
should only_include("bar", "foo")
|
9
13
|
expect { should only_include("quox", "foo") }.to fail_assertion
|
@@ -28,5 +32,14 @@ describe ElabsMatchers::Matchers::OnlyInclude do
|
|
28
32
|
should_not only_include("foo", "bar", "baz")
|
29
33
|
expect { should_not only_include("foo", "bar") }.to fail_assertion
|
30
34
|
end
|
35
|
+
|
36
|
+
it "is deprecated" do
|
37
|
+
matcher = ElabsMatchers::Matchers::OnlyInclude::OnlyIncludeMatcher.new(
|
38
|
+
elements: %w[foo bar]
|
39
|
+
)
|
40
|
+
allow(matcher).to receive(:deprecated)
|
41
|
+
matcher.matches?("foo")
|
42
|
+
expect(matcher).to have_received(:deprecated)
|
43
|
+
end
|
31
44
|
end
|
32
45
|
end
|
@@ -12,7 +12,7 @@ describe ElabsMatchers::Matchers::Persist do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it "returns false if the value isn't the supplied" do
|
15
|
-
post.
|
15
|
+
allow(post).to receive(:title).and_return("New")
|
16
16
|
|
17
17
|
should_not persist(:title, "Updated")
|
18
18
|
expect { should persist(:title, "Updated") }.to fail_assertion
|
data/spec/spec_helper.rb
CHANGED
@@ -3,6 +3,7 @@ ENV["RAILS_ENV"] = "test"
|
|
3
3
|
require "rubygems"
|
4
4
|
require "bundler/setup"
|
5
5
|
require "capybara"
|
6
|
+
require "capybara/dsl"
|
6
7
|
require "active_model"
|
7
8
|
require "elabs_matchers"
|
8
9
|
|
@@ -10,6 +11,12 @@ RSpec.configure do |config|
|
|
10
11
|
config.mock_with :rspec
|
11
12
|
config.include Capybara::DSL
|
12
13
|
|
14
|
+
config.expect_with :rspec do |c|
|
15
|
+
c.syntax = [:should, :expect]
|
16
|
+
end
|
17
|
+
|
18
|
+
config.mock_with :rspec
|
19
|
+
|
13
20
|
%w[helpers matchers].each do |dir|
|
14
21
|
Dir[File.join(File.expand_path(File.dirname(__FILE__)), "../lib/elabs_matchers/#{dir}/*.rb")].each do |file|
|
15
22
|
file = file.split("/").last.split(".").first
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elabs_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Everyone at Elabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
description: Provides a set of
|
139
|
+
description: Provides a set of useful rspec matchers to be used with RSpec and/or
|
140
140
|
Capybara
|
141
141
|
email:
|
142
142
|
- dev@elabs.se
|
@@ -148,25 +148,16 @@ files:
|
|
148
148
|
- Gemfile
|
149
149
|
- README.md
|
150
150
|
- Rakefile
|
151
|
-
- development.
|
152
|
-
- doc/Cucumber.html
|
151
|
+
- development.md
|
153
152
|
- doc/ElabsMatchers.html
|
154
|
-
- doc/ElabsMatchers/Cucumber.html
|
155
|
-
- doc/ElabsMatchers/Cucumber/Common.html
|
156
153
|
- doc/ElabsMatchers/Helpers.html
|
157
|
-
- doc/ElabsMatchers/Helpers/Capybara.html
|
158
|
-
- doc/ElabsMatchers/Helpers/Common.html
|
159
154
|
- doc/ElabsMatchers/Helpers/Fixtures.html
|
160
155
|
- doc/ElabsMatchers/Helpers/NormalizeKeys.html
|
161
|
-
- doc/ElabsMatchers/Helpers/Orm.html
|
162
156
|
- doc/ElabsMatchers/Helpers/ReloadRecord.html
|
163
157
|
- doc/ElabsMatchers/Helpers/SelectYearAndMonth.html
|
164
|
-
- doc/ElabsMatchers/Helpers/Session.html
|
165
158
|
- doc/ElabsMatchers/Matchers.html
|
166
|
-
- doc/ElabsMatchers/Matchers/
|
167
|
-
- doc/ElabsMatchers/Matchers/
|
168
|
-
- doc/ElabsMatchers/Matchers/Capybara.html
|
169
|
-
- doc/ElabsMatchers/Matchers/Capybara/Common.html
|
159
|
+
- doc/ElabsMatchers/Matchers/BeValidWith.html
|
160
|
+
- doc/ElabsMatchers/Matchers/BeValidWith/BeValidWithMatcher.html
|
170
161
|
- doc/ElabsMatchers/Matchers/ContainHash.html
|
171
162
|
- doc/ElabsMatchers/Matchers/ContainHash/ContainHashMatcher.html
|
172
163
|
- doc/ElabsMatchers/Matchers/HaveAttribute.html
|
@@ -181,18 +172,10 @@ files:
|
|
181
172
|
- doc/ElabsMatchers/Matchers/HaveHeader/HaveHeaderMatcher.html
|
182
173
|
- doc/ElabsMatchers/Matchers/HaveImage.html
|
183
174
|
- doc/ElabsMatchers/Matchers/HaveImage/HaveImageMatcher.html
|
184
|
-
- doc/ElabsMatchers/Matchers/HaveTableRow.html
|
185
|
-
- doc/ElabsMatchers/Matchers/HaveTableRow/HaveTableRowMatcher.html
|
186
175
|
- doc/ElabsMatchers/Matchers/OnlyInclude.html
|
187
176
|
- doc/ElabsMatchers/Matchers/OnlyInclude/OnlyIncludeMatcher.html
|
188
177
|
- doc/ElabsMatchers/Matchers/Persist.html
|
189
178
|
- doc/ElabsMatchers/Matchers/Persist/PersistMatcher.html
|
190
|
-
- doc/ElabsMatchers/Matchers/Rspec.html
|
191
|
-
- doc/ElabsMatchers/Matchers/Rspec/Allow.html
|
192
|
-
- doc/ElabsMatchers/Matchers/Rspec/Common.html
|
193
|
-
- doc/ElabsMatchers/Matchers/Rspec/Orm.html
|
194
|
-
- doc/ElabsMatchers/Orm.html
|
195
|
-
- doc/ElabsMatchers/Orm/Post.html
|
196
179
|
- doc/_index.html
|
197
180
|
- doc/class_list.html
|
198
181
|
- doc/css/common.css
|
@@ -223,7 +206,6 @@ files:
|
|
223
206
|
- lib/elabs_matchers/matchers/have_form_errors_on.rb
|
224
207
|
- lib/elabs_matchers/matchers/have_header.rb
|
225
208
|
- lib/elabs_matchers/matchers/have_image.rb
|
226
|
-
- lib/elabs_matchers/matchers/have_table_row.rb
|
227
209
|
- lib/elabs_matchers/matchers/only_include.rb
|
228
210
|
- lib/elabs_matchers/matchers/persist.rb
|
229
211
|
- lib/elabs_matchers/version.rb
|
@@ -239,7 +221,6 @@ files:
|
|
239
221
|
- spec/elabs_matchers/matchers/have_form_errors_on_spec.rb
|
240
222
|
- spec/elabs_matchers/matchers/have_header_spec.rb
|
241
223
|
- spec/elabs_matchers/matchers/have_image_spec.rb
|
242
|
-
- spec/elabs_matchers/matchers/have_table_row_spec.rb
|
243
224
|
- spec/elabs_matchers/matchers/only_include_spec.rb
|
244
225
|
- spec/elabs_matchers/matchers/persist_spec.rb
|
245
226
|
- spec/fixtures/file.txt
|
@@ -264,11 +245,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
245
|
- !ruby/object:Gem::Version
|
265
246
|
version: '0'
|
266
247
|
requirements: []
|
267
|
-
|
268
|
-
rubygems_version: 2.2.2
|
248
|
+
rubygems_version: 3.2.25
|
269
249
|
signing_key:
|
270
250
|
specification_version: 4
|
271
|
-
summary: Provides a set of
|
251
|
+
summary: Provides a set of useful rspec matchers
|
272
252
|
test_files:
|
273
253
|
- spec/elabs_matchers/helpers/fixtures_spec.rb
|
274
254
|
- spec/elabs_matchers/helpers/normalize_keys_spec.rb
|
@@ -282,7 +262,6 @@ test_files:
|
|
282
262
|
- spec/elabs_matchers/matchers/have_form_errors_on_spec.rb
|
283
263
|
- spec/elabs_matchers/matchers/have_header_spec.rb
|
284
264
|
- spec/elabs_matchers/matchers/have_image_spec.rb
|
285
|
-
- spec/elabs_matchers/matchers/have_table_row_spec.rb
|
286
265
|
- spec/elabs_matchers/matchers/only_include_spec.rb
|
287
266
|
- spec/elabs_matchers/matchers/persist_spec.rb
|
288
267
|
- spec/fixtures/file.txt
|
data/doc/Cucumber.html
DELETED
@@ -1,116 +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: Cucumber
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.5
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="_index.html">Index (C)</a> »
|
37
|
-
|
38
|
-
|
39
|
-
<span class="title">Cucumber</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: Cucumber
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<dt class="r1">Includes:</dt>
|
72
|
-
<dd class="r1"><span class='object_link'><a href="ElabsMatchers/Cucumber/Common.html" title="ElabsMatchers::Cucumber::Common (module)">ElabsMatchers::Cucumber::Common</a></span></dd>
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<dt class="r2 last">Defined in:</dt>
|
79
|
-
<dd class="r2 last">lib/elabs_matchers/cucumber/common.rb</dd>
|
80
|
-
|
81
|
-
</dl>
|
82
|
-
<div class="clear"></div>
|
83
|
-
|
84
|
-
|
85
|
-
<h2>Constant Summary</h2>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
<h2>Constant Summary</h2>
|
91
|
-
|
92
|
-
<h3 class="inherited">Constants included
|
93
|
-
from <span class='object_link'><a href="ElabsMatchers/Cucumber/Common.html" title="ElabsMatchers::Cucumber::Common (module)">ElabsMatchers::Cucumber::Common</a></span></h3>
|
94
|
-
<p class="inherited"><span class='object_link'><a href="ElabsMatchers/Cucumber/Common.html#LIST_REGEXP-constant" title="ElabsMatchers::Cucumber::Common::LIST_REGEXP (constant)">ElabsMatchers::Cucumber::Common::LIST_REGEXP</a></span>, <span class='object_link'><a href="ElabsMatchers/Cucumber/Common.html#LIST_SEPARATOR-constant" title="ElabsMatchers::Cucumber::Common::LIST_SEPARATOR (constant)">ElabsMatchers::Cucumber::Common::LIST_SEPARATOR</a></span></p>
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div id="footer">
|
110
|
-
Generated on Fri Feb 17 16:29:16 2012 by
|
111
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
|
-
0.7.5 (ruby-1.9.3).
|
113
|
-
</div>
|
114
|
-
|
115
|
-
</body>
|
116
|
-
</html>
|
@@ -1,145 +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::Cucumber::Common
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.5
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '../..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../../_index.html">Index (C)</a> »
|
37
|
-
<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="../Cucumber.html" title="ElabsMatchers::Cucumber (module)">Cucumber</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">Common</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Module: ElabsMatchers::Cucumber::Common
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<dt class="r1">Included in:</dt>
|
74
|
-
<dd class="r1"><span class='object_link'><a href="../../Cucumber.html" title="Cucumber (module)">Cucumber</a></span></dd>
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<dt class="r2 last">Defined in:</dt>
|
79
|
-
<dd class="r2 last">lib/elabs_matchers/cucumber/common.rb</dd>
|
80
|
-
|
81
|
-
</dl>
|
82
|
-
<div class="clear"></div>
|
83
|
-
|
84
|
-
|
85
|
-
<h2>Constant Summary</h2>
|
86
|
-
|
87
|
-
<dl class="constants">
|
88
|
-
|
89
|
-
<dt id="LIST_SEPARATOR-constant" class="">LIST_SEPARATOR =
|
90
|
-
<div class="docstring">
|
91
|
-
<div class="discussion">
|
92
|
-
|
93
|
-
<p>Matches a comma or the word 'and'.</p>
|
94
|
-
|
95
|
-
<p>Example: , and</p>
|
96
|
-
|
97
|
-
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
<div class="tags">
|
101
|
-
|
102
|
-
|
103
|
-
</div>
|
104
|
-
</dt>
|
105
|
-
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>%r{</span><span class='tstring_content'>(?:,\s|\sand\s)</span><span class='regexp_end'>}</span></span></pre></dd>
|
106
|
-
|
107
|
-
<dt id="LIST_REGEXP-constant" class="">LIST_REGEXP =
|
108
|
-
<div class="docstring">
|
109
|
-
<div class="discussion">
|
110
|
-
|
111
|
-
<p>Matches a list seperated by LIST_SEPARATOR (, or the word 'and')</p>
|
112
|
-
|
113
|
-
<p>Example: "foo", "bar" and "baz"</p>
|
114
|
-
|
115
|
-
|
116
|
-
</div>
|
117
|
-
</div>
|
118
|
-
<div class="tags">
|
119
|
-
|
120
|
-
|
121
|
-
</div>
|
122
|
-
</dt>
|
123
|
-
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>%r{</span><span class='tstring_content'>(?:"(?:[^\"]*)"</span><span class='embexpr_beg'>#{</span><span class='const'>LIST_SEPARATOR</span><span class='rbrace'>}</span><span class='tstring_content'>?)+</span><span class='regexp_end'>}</span></span></pre></dd>
|
124
|
-
|
125
|
-
</dl>
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
</div>
|
137
|
-
|
138
|
-
<div id="footer">
|
139
|
-
Generated on Fri Feb 17 16:29:16 2012 by
|
140
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
141
|
-
0.7.5 (ruby-1.9.3).
|
142
|
-
</div>
|
143
|
-
|
144
|
-
</body>
|
145
|
-
</html>
|
@@ -1,108 +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::Cucumber
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.5
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (C)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../ElabsMatchers.html" title="ElabsMatchers (module)">ElabsMatchers</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">Cucumber</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::Cucumber
|
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/cucumber/common.rb</dd>
|
76
|
-
|
77
|
-
</dl>
|
78
|
-
<div class="clear"></div>
|
79
|
-
|
80
|
-
<h2>Defined Under Namespace</h2>
|
81
|
-
<p class="children">
|
82
|
-
|
83
|
-
|
84
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Cucumber/Common.html" title="ElabsMatchers::Cucumber::Common (module)">Common</a></span>
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
</p>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
<div id="footer">
|
102
|
-
Generated on Fri Feb 17 16:29:16 2012 by
|
103
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
104
|
-
0.7.5 (ruby-1.9.3).
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</body>
|
108
|
-
</html>
|