be_valid_asset 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,48 @@
1
+ html, body
2
+ {
3
+ background:#007086;
4
+ font-family:Arial,Helvetica,sans-serif;
5
+ font-size:0.83em;
6
+ margin:0;
7
+ padding:0;
8
+ }
9
+
10
+ *
11
+ {
12
+ margin:0;
13
+ padding:0;
14
+ }
15
+ ul, ul li
16
+ {
17
+ list-style-type: none;
18
+ }
19
+ li:last-child {
20
+ padding-bottom: 0.2em;
21
+ }
22
+ .hidden
23
+ {
24
+ display: none;
25
+ }
26
+ a img
27
+ {
28
+ border: none;
29
+ }
30
+ a
31
+ {
32
+ text-decoration: none;
33
+ }
34
+ a[href^="ftp"]
35
+ {
36
+ text-decoration: underline;
37
+ }
38
+ a:hover
39
+ {
40
+ text-decoration: underline;
41
+ }
42
+ .clear-float
43
+ {
44
+ clear: both;
45
+ font-size: 1px;
46
+ height: 0px;
47
+ line-height: 0px;
48
+ }
@@ -0,0 +1,42 @@
1
+ html, body
2
+ {
3
+ background:#007086;
4
+ font-family:Arial,Helvetica,sans-serif;
5
+ font-size:0.83em;
6
+ margin:0;
7
+ padding:0;
8
+ }
9
+
10
+ *
11
+ {
12
+ margin:0;
13
+ padding:0;
14
+ }
15
+ ul, ul li
16
+ {
17
+ list-style-type: none;
18
+ }
19
+
20
+ .hidden
21
+ {
22
+ display: none;
23
+ }
24
+ a img
25
+ {
26
+ border: none;
27
+ }
28
+ a
29
+ {
30
+ text-decoration: none;
31
+ }
32
+ a:hover
33
+ {
34
+ text-decoration: underline;
35
+ }
36
+ .clear-float
37
+ {
38
+ clear: both;
39
+ font-size: 1px;
40
+ height: 0px;
41
+ line-height: 0px;
42
+ }
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
+ <title>Test Valid Page</title>
7
+ </head>
8
+
9
+ <body>
10
+
11
+ <h1>Test#valid</h1>
12
+ <p>This is an example valid html file</p>
13
+
14
+ </body>
15
+ </html>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3
+ <channel>
4
+ <title>Interesting Stuff</title>
5
+ <link>http://site.example.com/</link>
6
+ <description>Description about interesting Stuff...</description>
7
+ <language>en-gb</language>
8
+ <atom:link type="application/rss+xml" href="http://site.example.com/index.rss" rel="self"/>
9
+ <item>
10
+ <title>Article 1 title</title>
11
+ <category>Category 1</category>
12
+ <description>&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;&lt;br /&gt;&lt;img src="http://site.example.com/articles/article-1-title/images/1.jpg" alt="Some Alt Text" /&gt;</description>
13
+ <pubDate>Wed, 15 Jul 2009 17:03:36 +0100</pubDate>
14
+ <link>http://site.example.com/articles/article-1-title</link>
15
+ <guid>http://site.example.com/articles/article-1-title</guid>
16
+ </item>
17
+ <item>
18
+ <title>Article 2 title</title>
19
+ <category>Category 2</category>
20
+ <description>&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;&lt;br /&gt;&lt;img src="http://site.example.com/articles/article-2-title/images/1.jpg" alt="Some Alt Text" /&gt;</description>
21
+ <pubDate>Wed, 15 Jul 2009 13:15:57 +0100</pubDate>
22
+ <link>http://site.example.com/articles/article-2-title</link>
23
+ <guid>http://site.example.com/articles/article-2-title</guid>
24
+ </item>
25
+ <item>
26
+ <title>Article 3 title</title>
27
+ <category>Category 1</category>
28
+ <description>&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;&lt;br /&gt;&lt;img src="http://site.example.com/articles/article-3-title/images/1.jpg" alt="Some Alt Text" /&gt;</description>
29
+ <pubDate>Wed, 15 Jul 2009 13:11:56 +0100</pubDate>
30
+ <link>http://site.example.com/articles/article-3-title</link>
31
+ <guid>http://site.example.com/articles/article-3-title</guid>
32
+ </item>
33
+ </channel>
34
+ </rss>
data/spec/spec.opts ADDED
@@ -0,0 +1,4 @@
1
+ --colour
2
+ --format specdoc
3
+ --loadby mtime
4
+ --reverse
@@ -0,0 +1,32 @@
1
+ require 'rubygems'
2
+ require 'spec/autorun'
3
+
4
+ begin
5
+ require 'ruby-debug'
6
+ rescue LoadError
7
+ end
8
+
9
+ $: << File.join(File.dirname(__FILE__), %w(.. lib))
10
+
11
+ require 'be_valid_asset'
12
+
13
+ Spec::Runner.configure do |config|
14
+ config.include BeValidAsset
15
+
16
+ BeValidAsset::Configuration.cache_path = File.join(File.dirname(__FILE__), 'tmp')
17
+ end
18
+
19
+ def get_file(name)
20
+ filename = File.join(File.dirname(__FILE__), 'files', name)
21
+ File.read(filename)
22
+ end
23
+
24
+ class MockResponse
25
+ def initialize(body_text)
26
+ @body = body_text
27
+ end
28
+
29
+ def body
30
+ @body
31
+ end
32
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: be_valid_asset
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
5
+ platform: ruby
6
+ authors: []
7
+
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-07 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description: Provides be_valid_xhtml and be_valid_css matchers for rspec controller and view tests.
26
+ email: github@unboxedconsulting.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files: []
32
+
33
+ files:
34
+ - Rakefile
35
+ - README.markdown
36
+ - MIT-LICENSE.txt
37
+ - lib/be_valid_asset/be_valid_base.rb
38
+ - lib/be_valid_asset/be_valid_css.rb
39
+ - lib/be_valid_asset/be_valid_feed.rb
40
+ - lib/be_valid_asset/be_valid_xhtml.rb
41
+ - lib/be_valid_asset.rb
42
+ - spec/be_valid_asset/be_valid_css_spec.rb
43
+ - spec/be_valid_asset/be_valid_feed_spec.rb
44
+ - spec/be_valid_asset/be_valid_xhtml_spec.rb
45
+ - spec/spec_helper.rb
46
+ - spec/files/invalid.css
47
+ - spec/files/invalid.html
48
+ - spec/files/invalid2.html
49
+ - spec/files/invalid_feed.xml
50
+ - spec/files/valid-1.css
51
+ - spec/files/valid-2.css
52
+ - spec/files/valid-3.css
53
+ - spec/files/valid.css
54
+ - spec/files/valid.html
55
+ - spec/files/valid_feed.xml
56
+ - spec/spec.opts
57
+ has_rdoc: true
58
+ homepage: http://github.com/unboxed/be_valid_asset
59
+ licenses: []
60
+
61
+ post_install_message:
62
+ rdoc_options: []
63
+
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ version:
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: "0"
77
+ version:
78
+ requirements: []
79
+
80
+ rubyforge_project:
81
+ rubygems_version: 1.3.5
82
+ signing_key:
83
+ specification_version: 3
84
+ summary: Markup validation for RSpec
85
+ test_files:
86
+ - spec/be_valid_asset/be_valid_css_spec.rb
87
+ - spec/be_valid_asset/be_valid_feed_spec.rb
88
+ - spec/be_valid_asset/be_valid_xhtml_spec.rb