be_valid_asset 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +49 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +1 -1
- data/be_valid_asset.gemspec +2 -4
- data/lib/be_valid_asset/be_valid_base.rb +16 -7
- data/lib/be_valid_asset/be_valid_css.rb +6 -4
- data/lib/be_valid_asset/be_valid_feed.rb +4 -2
- data/lib/be_valid_asset/be_valid_markup.rb +13 -11
- data/lib/be_valid_asset/be_valid_xhtml.rb +3 -3
- data/lib/be_valid_asset/version.rb +1 -1
- data/spec/be_valid_asset/be_valid_css_spec.rb +66 -66
- data/spec/be_valid_asset/be_valid_feed_spec.rb +60 -60
- data/spec/be_valid_asset/be_valid_markup_spec.rb +151 -119
- data/spec/spec_helper.rb +4 -3
- metadata +12 -51
data/spec/spec_helper.rb
CHANGED
@@ -11,8 +11,9 @@ $: << File.join(File.dirname(__FILE__), %w(.. lib))
|
|
11
11
|
require 'be_valid_asset'
|
12
12
|
|
13
13
|
RSpec.configure do |config|
|
14
|
+
config.disable_monkey_patching!
|
14
15
|
config.include BeValidAsset
|
15
|
-
|
16
|
+
|
16
17
|
BeValidAsset::Configuration.cache_path = File.join(File.dirname(__FILE__), 'tmp')
|
17
18
|
end
|
18
19
|
|
@@ -25,11 +26,11 @@ class MockResponse
|
|
25
26
|
def initialize(body_text)
|
26
27
|
@source = @body = body_text
|
27
28
|
end
|
28
|
-
|
29
|
+
|
29
30
|
def body
|
30
31
|
@body
|
31
32
|
end
|
32
|
-
|
33
|
+
|
33
34
|
def source
|
34
35
|
@source
|
35
36
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: be_valid_asset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alex Tomlins
|
@@ -10,59 +9,27 @@ authors:
|
|
10
9
|
- Ben Brinckerhoff
|
11
10
|
- Jolyon Pawlyn
|
12
11
|
- Sebastian de Castelberg
|
12
|
+
- Zubair Chaudary
|
13
|
+
- Murray Steele
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
|
-
date:
|
17
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
17
18
|
dependencies:
|
18
19
|
- !ruby/object:Gem::Dependency
|
19
20
|
name: rspec
|
20
21
|
requirement: !ruby/object:Gem::Requirement
|
21
|
-
none: false
|
22
22
|
requirements:
|
23
|
-
- -
|
23
|
+
- - '>='
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: '0'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
29
|
requirements:
|
31
|
-
- -
|
30
|
+
- - '>='
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rake
|
36
|
-
requirement: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
|
-
requirements:
|
39
|
-
- - ! '>='
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
|
-
type: :development
|
43
|
-
prerelease: false
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
|
-
requirements:
|
47
|
-
- - ! '>='
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0'
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: rspec
|
52
|
-
requirement: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ! '>='
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: '2.0'
|
58
|
-
type: :development
|
59
|
-
prerelease: false
|
60
|
-
version_requirements: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '2.0'
|
66
33
|
description: Provides be_valid_markup, be_valid_css and be_valid_feed matchers for
|
67
34
|
RSpec controller and view tests.
|
68
35
|
email:
|
@@ -73,6 +40,7 @@ extra_rdoc_files: []
|
|
73
40
|
files:
|
74
41
|
- .gitignore
|
75
42
|
- .rspec
|
43
|
+
- CHANGELOG.md
|
76
44
|
- Gemfile
|
77
45
|
- LICENSE.txt
|
78
46
|
- README.md
|
@@ -108,33 +76,26 @@ files:
|
|
108
76
|
homepage: http://github.com/unboxed/be_valid_asset
|
109
77
|
licenses:
|
110
78
|
- MIT
|
79
|
+
metadata: {}
|
111
80
|
post_install_message:
|
112
81
|
rdoc_options: []
|
113
82
|
require_paths:
|
114
83
|
- lib
|
115
84
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
85
|
requirements:
|
118
|
-
- -
|
86
|
+
- - '>='
|
119
87
|
- !ruby/object:Gem::Version
|
120
88
|
version: '0'
|
121
|
-
segments:
|
122
|
-
- 0
|
123
|
-
hash: -4532398578737053975
|
124
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
90
|
requirements:
|
127
|
-
- -
|
91
|
+
- - '>='
|
128
92
|
- !ruby/object:Gem::Version
|
129
93
|
version: '0'
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
hash: -4532398578737053975
|
133
94
|
requirements: []
|
134
95
|
rubyforge_project:
|
135
|
-
rubygems_version:
|
96
|
+
rubygems_version: 2.4.1
|
136
97
|
signing_key:
|
137
|
-
specification_version:
|
98
|
+
specification_version: 4
|
138
99
|
summary: Markup and asset validation for RSpec
|
139
100
|
test_files:
|
140
101
|
- spec/be_valid_asset/be_valid_css_spec.rb
|