frameworks-capybara 0.2.33 → 0.2.34

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 0.2.34
2
+ Improved validate_online method to disregard system/OS errors.
3
+
1
4
  0.2.33
2
5
  Specify different runtime dependencies depending on the ruby version.
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frameworks-capybara (0.2.33)
4
+ frameworks-capybara (0.2.34)
5
5
  capybara (~> 1.1.2)
6
6
  capybara-celerity
7
7
  capybara-mechanize (>= 0.3.0, < 1.0.0)
@@ -65,7 +65,7 @@ GEM
65
65
  multi_test (0.0.2)
66
66
  net-http-digest_auth (1.4)
67
67
  net-http-persistent (2.9)
68
- nokogiri (1.5.10)
68
+ nokogiri (1.5.11)
69
69
  ntlm-http (0.1.1)
70
70
  rack (1.5.2)
71
71
  rack-test (0.6.2)
@@ -84,11 +84,11 @@ module Frameworks
84
84
  results.errors.each do |err|
85
85
  puts err.to_s
86
86
  end
87
- raise "W3C Validation of " + current_url + " failed."
87
+ raise "W3C Validation failed."
88
88
  end
89
89
 
90
- rescue Net::HTTPFatalError => e
91
- puts "WARNING - OUTGOING NETWORK ERROR FROM FORGE TO W3C - Validation Not Performed"
90
+ rescue SystemCallError => e
91
+ puts "System error whilst performing request to W3C: #{e}"
92
92
  end
93
93
  end
94
94
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FrameworksCapybara
2
- VERSION = '0.2.33'
2
+ VERSION = '0.2.34'
3
3
  end
@@ -215,9 +215,19 @@ describe Frameworks::EnvHelper do
215
215
  #don't want to push proxy addr online
216
216
  it "should be able to validate xhtml online" do
217
217
  @proxy_host = ''
218
+ @proxy_port = ''
218
219
  xhtml = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>a</title></head><body><p>a</p></body></html>'
219
220
  validate_online(xhtml)
220
221
  end
222
+
223
+ it "should be able to report errors for invalid markup" do
224
+ @proxy_host = ''
225
+ @proxy_port = ''
226
+ xhtml = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><nosuchelement><title>a</title></head><body><p>a</p></body></html>'
227
+ expect {
228
+ validate_online(xhtml)
229
+ }.to raise_error(RuntimeError)
230
+ end
221
231
  =end
222
232
  end
223
233
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameworks-capybara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 85
4
+ hash: 83
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 33
10
- version: 0.2.33
9
+ - 34
10
+ version: 0.2.34
11
11
  platform: ruby
12
12
  authors:
13
13
  - matt robbins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-12-05 00:00:00 +00:00
18
+ date: 2013-12-23 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency