rspec2-rails-views-matchers 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/.yardopts +1 -1
- data/{docs/CHANGELOG.md → CHANGELOG.md} +10 -3
- data/Gemfile +0 -2
- data/README.md +47 -24
- data/Rakefile +7 -0
- data/assets/form.html +139 -0
- data/assets/ordered_list.html +9 -0
- data/assets/paragraphs.html +3 -0
- data/assets/quotes.html +6 -0
- data/assets/search_and_submit.html +9 -0
- data/assets/special.html +22 -0
- data/lib/rspec2-rails-views-matchers.rb +469 -1
- data/{docs/mikhalok.jpg → mikhalok.jpg} +0 -0
- data/rspec2-rails-views-matchers.gemspec +6 -5
- data/spec/matchers/form_matchers_spec.rb +214 -213
- data/spec/matchers/have_tag_spec.rb +137 -166
- data/spec/spec_helper.rb +0 -11
- metadata +34 -31
- data/lib/rspec/rails/views/matchers.rb +0 -1
- data/lib/rspec/rails/views/matchers/have_tag.rb +0 -325
- data/lib/version.rb +0 -13
@@ -1,25 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'have_tag' do
|
4
|
-
|
5
|
-
it "should have message for should_not"
|
6
|
-
it "should have #description method"
|
7
|
-
|
8
4
|
context "through css selector" do
|
9
|
-
|
10
|
-
before :each do
|
11
|
-
render_html <<HTML
|
12
|
-
<div class="class-one class-two">
|
13
|
-
some content
|
14
|
-
<div id="div">some other div</div>
|
15
|
-
<p class="paragraph">la<strong>lala</strong></p>
|
16
|
-
</div>
|
17
|
-
<form id="some_form">
|
18
|
-
<input id="search" type="text" />
|
19
|
-
<input type="submit" value="Save" />
|
20
|
-
</form>
|
21
|
-
HTML
|
22
|
-
end
|
5
|
+
let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/search_and_submit.html") }
|
23
6
|
|
24
7
|
it "should find tags" do
|
25
8
|
rendered.should have_tag('div')
|
@@ -39,54 +22,71 @@ HTML
|
|
39
22
|
|
40
23
|
it "should not find tags and display appropriate message" do
|
41
24
|
expect { rendered.should have_tag('span') }.should raise_spec_error(
|
42
|
-
|
25
|
+
%Q{expected following:\n#{rendered}\nto have at least 1 element matching "span", found 0.}
|
43
26
|
)
|
44
27
|
expect { rendered.should have_tag('span#some_id') }.should raise_spec_error(
|
45
|
-
|
28
|
+
%Q{expected following:\n#{rendered}\nto have at least 1 element matching "span#some_id", found 0.}
|
46
29
|
)
|
47
30
|
expect { rendered.should have_tag('span.some_class') }.should raise_spec_error(
|
48
|
-
|
31
|
+
%Q{expected following:\n#{rendered}\nto have at least 1 element matching "span.some_class", found 0.}
|
49
32
|
)
|
50
33
|
end
|
51
34
|
|
52
|
-
|
35
|
+
it "should find unexpected tags and display appropriate message" do
|
36
|
+
expect { rendered.should_not have_tag('div') }.should raise_spec_error(
|
37
|
+
%Q{expected following:\n#{rendered}\nto NOT have element matching "div", found 2.}
|
38
|
+
)
|
39
|
+
expect { rendered.should_not have_tag('div#div') }.should raise_spec_error(
|
40
|
+
%Q{expected following:\n#{rendered}\nto NOT have element matching "div#div", found 1.}
|
41
|
+
)
|
42
|
+
expect { rendered.should_not have_tag('p.paragraph') }.should raise_spec_error(
|
43
|
+
%Q{expected following:\n#{rendered}\nto NOT have element matching "p.paragraph", found 1.}
|
44
|
+
)
|
45
|
+
end
|
53
46
|
|
47
|
+
context "with additional HTML attributes(:with option)" do
|
54
48
|
it "should find tags" do
|
55
|
-
|
56
|
-
|
49
|
+
rendered.should have_tag('input#search',:with => {:type => "text"})
|
50
|
+
rendered.should have_tag(:input ,:with => {:type => "submit", :value => "Save"})
|
57
51
|
end
|
58
52
|
|
59
53
|
it "should find tags that have classes specified via array(or string)" do
|
60
|
-
|
61
|
-
|
54
|
+
rendered.should have_tag('div',:with => {:class => %w(class-one class-two)})
|
55
|
+
rendered.should have_tag('div',:with => {:class => 'class-two class-one'})
|
62
56
|
end
|
63
57
|
|
64
58
|
it "should not find tags that have classes specified via array" do
|
65
|
-
|
59
|
+
rendered.should_not have_tag('div',:with => {:class => %w(class-other class-two)})
|
66
60
|
end
|
67
61
|
|
68
62
|
it "should not find tags that have classes specified via array and display appropriate message" do
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
63
|
+
expect do
|
64
|
+
rendered.should have_tag('div',:with => {:class => %w(class-other class-two)})
|
65
|
+
end.should raise_spec_error(
|
66
|
+
%Q{expected following:\n#{rendered}\nto have at least 1 element matching "div.class-other.class-two", found 0.}
|
67
|
+
)
|
68
|
+
expect do
|
69
|
+
rendered.should have_tag('div',:with => {:class => 'class-other class-two'})
|
70
|
+
end.should raise_spec_error(
|
71
|
+
%Q{expected following:\n#{rendered}\nto have at least 1 element matching "div.class-other.class-two", found 0.}
|
72
|
+
)
|
79
73
|
end
|
80
74
|
|
81
75
|
it "should not find tags" do
|
82
|
-
|
83
|
-
|
76
|
+
rendered.should_not have_tag('input#search',:with => {:type => "some_other_type"})
|
77
|
+
rendered.should_not have_tag(:input, :with => {:type => "some_other_type"})
|
84
78
|
end
|
85
79
|
|
86
80
|
it "should not find tags and display appropriate message" do
|
87
|
-
|
88
|
-
|
89
|
-
|
81
|
+
expect { rendered.should have_tag('input#search',:with => {:type => "some_other_type"}) }.should raise_spec_error(
|
82
|
+
%Q{expected following:\n#{rendered}\nto have at least 1 element matching "input#search[type='some_other_type']", found 0.}
|
83
|
+
)
|
84
|
+
end
|
85
|
+
|
86
|
+
it "should find unexpected tags and display appropriate message" do
|
87
|
+
expect { rendered.should_not have_tag('input#search',:with => {:type => "text"}) }.should raise_spec_error(
|
88
|
+
%Q{expected following:\n#{rendered}\nto NOT have element matching "input#search[type='text']", found 1.}
|
89
|
+
)
|
90
90
|
end
|
91
91
|
|
92
92
|
end
|
@@ -94,17 +94,10 @@ HTML
|
|
94
94
|
end
|
95
95
|
|
96
96
|
context "by count" do
|
97
|
-
|
98
|
-
before :each do
|
99
|
-
render_html <<HTML
|
100
|
-
<p>tag one</p>
|
101
|
-
<p>tag two</p>
|
102
|
-
<p>tag three</p>
|
103
|
-
HTML
|
104
|
-
end
|
97
|
+
let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/paragraphs.html") }
|
105
98
|
|
106
99
|
it "should find tags" do
|
107
|
-
rendered.should have_tag('p', :count
|
100
|
+
rendered.should have_tag('p', :count => 3)
|
108
101
|
rendered.should have_tag('p', :count => 2..3)
|
109
102
|
end
|
110
103
|
|
@@ -120,7 +113,7 @@ HTML
|
|
120
113
|
|
121
114
|
it "should not find tags(with :count, :minimum or :maximum specified)" do
|
122
115
|
rendered.should_not have_tag('p', :count => 10)
|
123
|
-
rendered.should_not have_tag('p', :count
|
116
|
+
rendered.should_not have_tag('p', :count => 4..8)
|
124
117
|
rendered.should_not have_tag('p', :min => 11)
|
125
118
|
rendered.should_not have_tag('p', :minimum => 10)
|
126
119
|
rendered.should_not have_tag('p', :max => 2)
|
@@ -129,67 +122,82 @@ HTML
|
|
129
122
|
|
130
123
|
it "should not find tags and display appropriate message(with :count)" do
|
131
124
|
expect { rendered.should have_tag('p', :count => 10) }.should raise_spec_error(
|
132
|
-
|
133
|
-
|
125
|
+
%Q{expected following:\n#{rendered}\nto have 10 element(s) matching "p", found 3.}
|
126
|
+
)
|
134
127
|
|
135
128
|
expect { rendered.should have_tag('p', :count => 4..8) }.should raise_spec_error(
|
136
|
-
|
137
|
-
|
129
|
+
%Q{expected following:\n#{rendered}\nto have at least 4 and at most 8 element(s) matching "p", found 3.}
|
130
|
+
)
|
131
|
+
end
|
132
|
+
|
133
|
+
it "should find unexpected tags and display appropriate message(with :count)" do
|
134
|
+
expect { rendered.should_not have_tag('p', :count => 3) }.should raise_spec_error(
|
135
|
+
%Q{expected following:\n#{rendered}\nto NOT have 3 element(s) matching "p", but found.}
|
136
|
+
)
|
137
|
+
|
138
|
+
expect { rendered.should_not have_tag('p', :count => 1..3) }.should raise_spec_error(
|
139
|
+
%Q{expected following:\n#{rendered}\nto NOT have at least 1 and at most 3 element(s) matching "p", but found 3.}
|
140
|
+
)
|
138
141
|
end
|
139
142
|
|
140
143
|
it "should not find tags and display appropriate message(with :minimum)" do
|
141
144
|
expect { rendered.should have_tag('p', :min => 100) }.should raise_spec_error(
|
142
|
-
|
143
|
-
|
145
|
+
%Q{expected following:\n#{rendered}\nto have at least 100 element(s) matching "p", found 3.}
|
146
|
+
)
|
144
147
|
expect { rendered.should have_tag('p', :minimum => 100) }.should raise_spec_error(
|
145
|
-
|
146
|
-
|
148
|
+
%Q{expected following:\n#{rendered}\nto have at least 100 element(s) matching "p", found 3.}
|
149
|
+
)
|
150
|
+
end
|
151
|
+
|
152
|
+
it "should find unexpected tags and display appropriate message(with :minimum)" do
|
153
|
+
expect { rendered.should_not have_tag('p', :min => 2) }.should raise_spec_error(
|
154
|
+
%Q{expected following:\n#{rendered}\nto NOT have at least 2 element(s) matching "p", but found 3.}
|
155
|
+
)
|
156
|
+
expect { rendered.should_not have_tag('p', :minimum => 2) }.should raise_spec_error(
|
157
|
+
%Q{expected following:\n#{rendered}\nto NOT have at least 2 element(s) matching "p", but found 3.}
|
158
|
+
)
|
147
159
|
end
|
148
160
|
|
149
161
|
it "should not find tags and display appropriate message(with :maximum)" do
|
150
162
|
expect { rendered.should have_tag('p', :max => 2) }.should raise_spec_error(
|
151
|
-
|
152
|
-
|
163
|
+
%Q{expected following:\n#{rendered}\nto have at most 2 element(s) matching "p", found 3.}
|
164
|
+
)
|
153
165
|
expect { rendered.should have_tag('p', :maximum => 2) }.should raise_spec_error(
|
154
|
-
|
155
|
-
|
166
|
+
%Q{expected following:\n#{rendered}\nto have at most 2 element(s) matching "p", found 3.}
|
167
|
+
)
|
156
168
|
end
|
157
169
|
|
158
|
-
it "should
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
expect { rendered.
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
wrong_params_error_msg_2 = 'TODO2'
|
167
|
-
expect { rendered.should have_tag('div', :minimum => 2, :maximum => 1 ) }.should raise_error(wrong_params_error_msg_2)
|
170
|
+
it "should find unexpected tags and display appropriate message(with :maximum)" do
|
171
|
+
expect { rendered.should_not have_tag('p', :max => 5) }.should raise_spec_error(
|
172
|
+
%Q{expected following:\n#{rendered}\nto NOT have at most 5 element(s) matching "p", but found 3.}
|
173
|
+
)
|
174
|
+
expect { rendered.should_not have_tag('p', :maximum => 5) }.should raise_spec_error(
|
175
|
+
%Q{expected following:\n#{rendered}\nto NOT have at most 5 element(s) matching "p", but found 3.}
|
176
|
+
)
|
177
|
+
end
|
168
178
|
|
179
|
+
it "should raise error when wrong params specified" do
|
180
|
+
expect { rendered.should have_tag('div', :count => 'string') }.should raise_error(/wrong :count/)
|
181
|
+
wrong_params_error_msg_1 = ':count with :minimum or :maximum has no sence!'
|
182
|
+
expect { rendered.should have_tag('div', :count => 2, :minimum => 1) }.should raise_error(wrong_params_error_msg_1)
|
183
|
+
expect { rendered.should have_tag('div', :count => 2, :min => 1) }.should raise_error(wrong_params_error_msg_1)
|
184
|
+
expect { rendered.should have_tag('div', :count => 2, :maximum => 1) }.should raise_error(wrong_params_error_msg_1)
|
185
|
+
expect { rendered.should have_tag('div', :count => 2, :max => 1) }.should raise_error(wrong_params_error_msg_1)
|
186
|
+
wrong_params_error_msg_2 = ':minimum shold be less than :maximum!'
|
187
|
+
expect { rendered.should have_tag('div', :minimum => 2, :maximum => 1) }.should raise_error(wrong_params_error_msg_2)
|
169
188
|
[ 4..1, -2..6, 'a'..'z', 3..-9 ].each do |range|
|
170
|
-
|
189
|
+
expect { rendered.should have_tag('div', :count => range ) }.should raise_error("Your :count range(#{range.to_s}) has no sence!")
|
171
190
|
end
|
172
191
|
end
|
173
|
-
|
174
192
|
end
|
175
193
|
|
176
194
|
context "with content specified" do
|
177
|
-
|
178
|
-
before :each do
|
179
|
-
render_html <<HTML
|
180
|
-
<div>sample text</div>
|
181
|
-
<span>sample with 'single' quotes</span>
|
182
|
-
<span>sample with 'single' and "double" quotes</span>
|
183
|
-
<p>one </p>
|
184
|
-
<p> two</p>
|
185
|
-
<p> three </p>
|
186
|
-
HTML
|
187
|
-
end
|
195
|
+
let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/quotes.html") }
|
188
196
|
|
189
197
|
it "should find tags" do
|
190
|
-
rendered.should have_tag('div', :text => 'sample text'
|
191
|
-
rendered.should have_tag('p', :text => 'one
|
192
|
-
rendered.should have_tag('div', :text => /SAMPLE/i
|
198
|
+
rendered.should have_tag('div', :text => 'sample text')
|
199
|
+
rendered.should have_tag('p', :text => 'one')
|
200
|
+
rendered.should have_tag('div', :text => /SAMPLE/i)
|
193
201
|
rendered.should have_tag('span', :text => "sample with 'single' quotes")
|
194
202
|
rendered.should have_tag('span', :text => %Q{sample with 'single' and "double" quotes})
|
195
203
|
end
|
@@ -204,43 +212,26 @@ HTML
|
|
204
212
|
it "should not find tags and display appropriate message" do
|
205
213
|
# TODO make diffable,maybe...
|
206
214
|
expect { rendered.should have_tag('div', :text => 'SAMPLE text') }.should raise_spec_error(
|
207
|
-
|
208
|
-
|
215
|
+
%Q{"SAMPLE text" expected within "div" in following template:\n#{rendered}}
|
216
|
+
)
|
209
217
|
expect { rendered.should have_tag('div', :text => /SAMPLE tekzt/i) }.should raise_spec_error(
|
210
|
-
|
211
|
-
|
218
|
+
%Q{/SAMPLE tekzt/i regexp expected within "div" in following template:\n#{rendered}}
|
219
|
+
)
|
220
|
+
end
|
221
|
+
|
222
|
+
it "should find unexpected tags and display appropriate message" do
|
223
|
+
expect { rendered.should_not have_tag('div', :text => 'sample text') }.should raise_spec_error(
|
224
|
+
%Q{"sample text" unexpected within "div" in following template:\n#{rendered}\nbut was found.}
|
225
|
+
)
|
226
|
+
expect { rendered.should_not have_tag('div', :text => /SAMPLE text/i) }.should raise_spec_error(
|
227
|
+
%Q{/SAMPLE text/i regexp unexpected within "div" in following template:\n#{rendered}\nbut was found.}
|
228
|
+
)
|
212
229
|
end
|
213
230
|
|
214
231
|
end
|
215
232
|
|
216
233
|
context "mixed matching" do
|
217
|
-
|
218
|
-
before :each do
|
219
|
-
render_html <<HTML
|
220
|
-
<table>
|
221
|
-
<tr>
|
222
|
-
<td>user_1</td>
|
223
|
-
<td id="other-special">user_2</td>
|
224
|
-
<td>user_3</td>
|
225
|
-
</tr>
|
226
|
-
<tr>
|
227
|
-
<td>a</td>
|
228
|
-
<td id="special">a</td>
|
229
|
-
<td>a</td>
|
230
|
-
</tr>
|
231
|
-
</table>
|
232
|
-
|
233
|
-
<div class="one">text</div>
|
234
|
-
<div class="one">text</div>
|
235
|
-
<div class="one">text</div>
|
236
|
-
<div class="one">text bla</div>
|
237
|
-
<div class="one">content bla</div>
|
238
|
-
<div class="one">content</div>
|
239
|
-
<div class="two">content bla</div>
|
240
|
-
<div class="two">content</div>
|
241
|
-
<div class="two">text</div>
|
242
|
-
HTML
|
243
|
-
end
|
234
|
+
let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/special.html") }
|
244
235
|
|
245
236
|
it "should find tags by count and exact content" do
|
246
237
|
rendered.should have_tag("td", :text => 'a', :count => 3)
|
@@ -278,74 +269,54 @@ HTML
|
|
278
269
|
rendered.should_not have_tag("div", :with => { :class => "one" }, :count => 5, :text => /bla/)
|
279
270
|
rendered.should_not have_tag("div", :with => { :class => "one" }, :count => 6, :text => /other bla/)
|
280
271
|
end
|
281
|
-
|
282
272
|
end
|
283
273
|
|
284
274
|
context "nested matching:" do
|
285
|
-
|
286
|
-
@ordered_list =<<OL
|
287
|
-
<ol class="menu">
|
288
|
-
<li>list item 1</li>
|
289
|
-
<li>list item 2</li>
|
290
|
-
<li>list item 3</li>
|
291
|
-
</ol>
|
292
|
-
OL
|
293
|
-
render_html <<HTML
|
294
|
-
<html>
|
295
|
-
<body>
|
296
|
-
#{@ordered_list}
|
297
|
-
</body>
|
298
|
-
</html>
|
299
|
-
HTML
|
300
|
-
end
|
275
|
+
let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/ordered_list.html") }
|
301
276
|
|
302
277
|
it "should find tags" do
|
303
278
|
rendered.should have_tag('ol') {
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
279
|
+
with_tag('li', :text => 'list item 1')
|
280
|
+
with_tag('li', :text => 'list item 2')
|
281
|
+
with_tag('li', :text => 'list item 3')
|
282
|
+
with_tag('li', :count => 3)
|
283
|
+
with_tag('li', :count => 2..3)
|
284
|
+
with_tag('li', :min => 2)
|
285
|
+
with_tag('li', :max => 6)
|
311
286
|
}
|
312
287
|
end
|
313
288
|
|
314
289
|
it "should not find tags" do
|
315
290
|
rendered.should have_tag('ol') {
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
291
|
+
without_tag('div')
|
292
|
+
without_tag('li', :count => 2)
|
293
|
+
without_tag('li', :count => 4..8)
|
294
|
+
without_tag('li', :min => 100)
|
295
|
+
without_tag('li', :max => 2)
|
296
|
+
without_tag('li', :text => 'blabla')
|
297
|
+
without_tag('li', :text => /list item (?!\d)/)
|
323
298
|
}
|
324
299
|
end
|
325
300
|
|
326
301
|
it "should handle do; end" do
|
327
302
|
expect do
|
328
|
-
|
329
|
-
|
330
|
-
|
303
|
+
rendered.should have_tag('ol') do
|
304
|
+
with_tag('div')
|
305
|
+
end
|
331
306
|
end.should raise_spec_error(/have at least 1 element matching "div", found 0/)
|
332
307
|
end
|
333
308
|
|
334
309
|
it "should not find tags and display appropriate message" do
|
335
|
-
ordered_list_regexp =
|
310
|
+
ordered_list_regexp = rendered[/<ol.*<\/ol>/m].gsub(/(\n?\s{2,}|\n\s?)/,'\n*\s*')
|
336
311
|
expect {
|
337
|
-
|
338
|
-
}.should raise_spec_error(/expected following
|
339
|
-
|
312
|
+
rendered.should have_tag('ol') { with_tag('li'); with_tag('div') }
|
313
|
+
}.should raise_spec_error(/expected following:\n#{ordered_list_regexp}\n\s*to have at least 1 element matching "div", found 0/)
|
340
314
|
expect {
|
341
|
-
|
342
|
-
}.should raise_spec_error(/expected following
|
343
|
-
|
315
|
+
rendered.should have_tag('ol') { with_tag('li'); with_tag('li', :count => 10) }
|
316
|
+
}.should raise_spec_error(/expected following:\n#{ordered_list_regexp}\n\s*to have 10 element\(s\) matching "li", found 3/)
|
344
317
|
expect {
|
345
|
-
|
346
|
-
}.should raise_spec_error(/\/SAMPLE text\/i regexp expected within "li" in following template
|
318
|
+
rendered.should have_tag('ol') { with_tag('li'); with_tag('li', :text => /SAMPLE text/i) }
|
319
|
+
}.should raise_spec_error(/\/SAMPLE text\/i regexp expected within "li" in following template:\n#{ordered_list_regexp}/)
|
347
320
|
end
|
348
|
-
|
349
321
|
end
|
350
|
-
|
351
322
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -12,16 +12,5 @@ require 'rspec2-rails-views-matchers'
|
|
12
12
|
# # in ./support/ and its subdirectories.
|
13
13
|
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
|
14
14
|
|
15
|
-
module RenderedHelper
|
16
|
-
def render_html html
|
17
|
-
@rendered = html
|
18
|
-
end
|
19
|
-
|
20
|
-
def rendered
|
21
|
-
@rendered
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
15
|
RSpec.configure do |config|
|
26
|
-
config.include RenderedHelper
|
27
16
|
end
|
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kucaahbe
|
@@ -15,12 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-09-29 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
26
24
|
- - ">="
|
@@ -32,27 +30,27 @@ dependencies:
|
|
32
30
|
- 0
|
33
31
|
version: 2.0.0
|
34
32
|
type: :runtime
|
33
|
+
requirement: *id001
|
35
34
|
name: rspec
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
35
|
prerelease: false
|
39
|
-
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
38
|
none: false
|
41
39
|
requirements:
|
42
|
-
- -
|
40
|
+
- - ">="
|
43
41
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
42
|
+
hash: 15
|
45
43
|
segments:
|
46
44
|
- 1
|
47
|
-
-
|
48
|
-
-
|
49
|
-
version: 1.
|
45
|
+
- 4
|
46
|
+
- 4
|
47
|
+
version: 1.4.4
|
50
48
|
type: :runtime
|
49
|
+
requirement: *id002
|
51
50
|
name: nokogiri
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
51
|
prerelease: false
|
55
|
-
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
54
|
none: false
|
57
55
|
requirements:
|
58
56
|
- - ">="
|
@@ -62,11 +60,11 @@ dependencies:
|
|
62
60
|
- 0
|
63
61
|
version: "0"
|
64
62
|
type: :development
|
63
|
+
requirement: *id003
|
65
64
|
name: simplecov
|
66
|
-
version_requirements: *id003
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
65
|
prerelease: false
|
69
|
-
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
70
68
|
none: false
|
71
69
|
requirements:
|
72
70
|
- - ">="
|
@@ -76,9 +74,12 @@ dependencies:
|
|
76
74
|
- 0
|
77
75
|
version: "0"
|
78
76
|
type: :development
|
77
|
+
requirement: *id004
|
79
78
|
name: rake
|
80
|
-
|
81
|
-
description:
|
79
|
+
prerelease: false
|
80
|
+
description: |
|
81
|
+
Nokogiri based 'have_tag' and 'with_tag' matchers for rspec 2.x.x. Does not depend on assert_select matcher, provides useful error messages.
|
82
|
+
|
82
83
|
email:
|
83
84
|
- kucaahbe@ukr.net
|
84
85
|
executables: []
|
@@ -92,21 +93,23 @@ files:
|
|
92
93
|
- .rspec
|
93
94
|
- .travis.yml
|
94
95
|
- .yardopts
|
96
|
+
- CHANGELOG.md
|
95
97
|
- Gemfile
|
96
98
|
- README.md
|
97
99
|
- Rakefile
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
100
|
+
- assets/form.html
|
101
|
+
- assets/ordered_list.html
|
102
|
+
- assets/paragraphs.html
|
103
|
+
- assets/quotes.html
|
104
|
+
- assets/search_and_submit.html
|
105
|
+
- assets/special.html
|
102
106
|
- lib/rspec2-rails-views-matchers.rb
|
103
|
-
-
|
107
|
+
- mikhalok.jpg
|
104
108
|
- rspec2-rails-views-matchers.gemspec
|
105
109
|
- spec/matchers/form_matchers_spec.rb
|
106
110
|
- spec/matchers/have_tag_spec.rb
|
107
111
|
- spec/spec_helper.rb
|
108
112
|
- spec/support/spec_error.rb
|
109
|
-
has_rdoc: true
|
110
113
|
homepage: http://github.com/kucaahbe/rspec2-rails-views-matchers
|
111
114
|
licenses: []
|
112
115
|
|
@@ -136,9 +139,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
139
|
requirements: []
|
137
140
|
|
138
141
|
rubyforge_project: rspec2-rails-views-matchers
|
139
|
-
rubygems_version: 1.
|
142
|
+
rubygems_version: 1.8.10
|
140
143
|
signing_key:
|
141
144
|
specification_version: 3
|
142
|
-
summary: Nokogiri based 'have_tag' and 'with_tag' for rspec
|
145
|
+
summary: Nokogiri based 'have_tag' and 'with_tag' matchers for rspec 2.x.x
|
143
146
|
test_files: []
|
144
147
|
|