rspec-html 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rspec/html/version.rb +1 -1
- data/lib/rspec_html/head.rb +1 -0
- data/lib/rspec_html/searchable.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a44b3e325c465425333bc192cf43486377191f17056c9aaf4ec8de1f69d8b98
|
|
4
|
+
data.tar.gz: 59a989375d49adf9a4a53400f521660ef56aae326334835c5fd57deb83e44148
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e17251c5710734d9b62badbea60798acd280d51e5bb208606fecd23fcff33e8c41220e979121925c5264bbb27a4effee9b54cb4d9a89fddb5a30e8858adc847
|
|
7
|
+
data.tar.gz: ea4ab89dc355ee02ae240746b4acb1f31a5b533e70b119b1f323f6ca290064194c9fa52de9a42b907a00d7452318d299e74ab8985f94a5a76fd15b10aebdfb25
|
data/README.md
CHANGED
data/lib/rspec/html/version.rb
CHANGED
data/lib/rspec_html/head.rb
CHANGED
|
@@ -7,6 +7,24 @@ module RSpecHTML
|
|
|
7
7
|
@entity.text.include?(val)
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
+
def css(*args)
|
|
11
|
+
@entity.css(*args)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def xpath(*args)
|
|
15
|
+
@entity.xpath(*args)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# rubocop:disable Naming/PredicateName
|
|
19
|
+
def has_css?(*args)
|
|
20
|
+
!css(*args).empty?
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def has_xpath?(*args)
|
|
24
|
+
!xpath(*args).empty?
|
|
25
|
+
end
|
|
26
|
+
# rubocop:enable Naming/PredicateName
|
|
27
|
+
|
|
10
28
|
def to_s
|
|
11
29
|
@entity.text.strip
|
|
12
30
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-html
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bob Farrell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|