html_validation 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa97373ec7e45112365ab10ab9a38ce52bfa6c3
|
4
|
+
data.tar.gz: f881191aa0c53e54cce39f7c3eb81f037859f7c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2358e42fef37c207e48ca41d1a361b52b8235800fd4fdea08c3ecb799b7ef6610069b7a641dbb836f1ba1c6ff7df3ef521873f48bc9382f82c1cfd0d356114f1
|
7
|
+
data.tar.gz: 0adb92e7cf893bd0b3acfb41cdff424f1cf249aaa67621f50ca1e02ac561b78a6f09110352c5bfa1e8fd33a31a5c7d72562613095f388e86c5d4c74cf1a5365c
|
@@ -9,7 +9,7 @@ describe "HTMLValidationRSpecMatcher" do
|
|
9
9
|
@page = double("page")
|
10
10
|
end
|
11
11
|
|
12
|
-
it "should check page object with the matcher for valid HTML and pass valid
|
12
|
+
it "should check page object with the matcher for valid HTML and pass valid HTML" do
|
13
13
|
@page.stub :html => good_html
|
14
14
|
@page.stub :body => good_html
|
15
15
|
@page.stub :current_url => 'http://www.fake.com/good_page'
|
@@ -9,15 +9,15 @@ describe "HTMLValidation" do
|
|
9
9
|
@h = HTMLValidation.new('/tmp/validation')
|
10
10
|
end
|
11
11
|
|
12
|
-
it "should return false for invalid
|
12
|
+
it "should return false for invalid HTML" do
|
13
13
|
result = @h.validation(bad_html, "http://myothersite.com").valid?.should be_false
|
14
14
|
end
|
15
15
|
|
16
|
-
it "should return true for valid
|
16
|
+
it "should return true for valid HTML" do
|
17
17
|
result = @h.validation(good_html, "http://mysite.com").valid?.should be_true
|
18
18
|
end
|
19
19
|
|
20
|
-
it "should have an exception string for invalid
|
20
|
+
it "should have an exception string for invalid HTML" do
|
21
21
|
result = @h.validation(bad_html, "http://myfavoritesite.com")
|
22
22
|
(result.exceptions.empty?).should be_false
|
23
23
|
end
|
@@ -48,7 +48,7 @@ describe "HTMLValidation" do
|
|
48
48
|
result.valid?.should be_true
|
49
49
|
end
|
50
50
|
|
51
|
-
it "should reset accepted exceptions string after seeing valid
|
51
|
+
it "should reset accepted exceptions string after seeing valid HTML for a path" do
|
52
52
|
result = @h.validation(bad_html, "http://notmysite.com")
|
53
53
|
result.accept!
|
54
54
|
result = @h.validation(bad_html, "http://notmysite.com").valid?.should be_true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html_validation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Beland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: HTML Validation lets you validate html locally. Lets you build html validation
|
14
14
|
into your test suite, but break the rules if you must.
|