rspec-html 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rspec/html.rb +2 -4
- data/lib/rspec/html/version.rb +1 -1
- data/lib/rspec_html/search.rb +1 -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: 0b613fed0b8e19c8069435ab30d735afa9660c66bb7beb6ee226aede70014f0e
|
4
|
+
data.tar.gz: c3526928723a917ed6511d3e17e6627df79090d342203e78fa64ab84e174a309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3e0dfbd5105659467f468131d7ea32baaf94e406af8dbef7e521ff762572479ad0394ee69474e1fc2f510e493d62d5981cb32b9756665b63af9c7d12220750d
|
7
|
+
data.tar.gz: 8cbc3b3579dee20f89d55de6b6e8221f1a32e73b67e3b875a18b8b604d579a12e46d835d63cc14c0c4453022a888f3b44b92d2c7ab97c08299945eb7538382cd
|
data/README.md
CHANGED
data/lib/rspec/html.rb
CHANGED
@@ -11,11 +11,9 @@ module RSpec
|
|
11
11
|
def document
|
12
12
|
return @document if @document
|
13
13
|
|
14
|
-
if !defined?(response) || response.nil?
|
15
|
-
raise RSpecHTML::NoResponseError, 'No `response` object found. Make a request first.'
|
16
|
-
end
|
17
|
-
|
18
14
|
RSpecHTML::Element.new(Nokogiri::HTML.parse(response.body), :document)
|
15
|
+
rescue NameError
|
16
|
+
raise RSpecHTML::NoResponseError, 'No `response` object found. Make a request first.'
|
19
17
|
end
|
20
18
|
|
21
19
|
def parse_html(content)
|
data/lib/rspec/html/version.rb
CHANGED
data/lib/rspec_html/search.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.6
|
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-09
|
11
|
+
date: 2020-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|