be_valid_asset 1.3.0 → 1.3.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: 4f5e373c8a93d715175401ab7cf5957d0d25e0b2
4
- data.tar.gz: af7fd77efaf14d9f6e7a7b66413ceedf5295dbfc
3
+ metadata.gz: c9e622d72446d7e76660061a1661a380aaf5ff96
4
+ data.tar.gz: 51fc0a025f7a7bbc4aa0455ec282b698e8032949
5
5
  SHA512:
6
- metadata.gz: 188b91cfa1a6efe8c6adbcd9e7f54bff0ee1994dbcf00c5fd60223004427a982a5bec7e64445ff400b38595dbdcf3ed95d9c24608d43d38cf6c85011c23bb50f
7
- data.tar.gz: 45c68a7d767852433d7e452e596eacb2aba14a99f68e679b7a54252253774fcd186d177313f02b8a83faef08f9069cf5b539fc6542e4a4f30e9ad4d41ac4b656
6
+ metadata.gz: de19c4bc6247bae1969659bd510238bb169af7868bdcf2ce96b6ba673abc2f2a6f929baf667a57040d89b67b24b21ab98162cf0bb71c38d9f957bf96caad76f8
7
+ data.tar.gz: d9861c8ea7d1c9a7e7a75e9f7be083fca35a74c0245a2778fc0b354eb4fa49b1c7ac4a7f3ea0a2d25586b5f8041c82cf8a75403799886df91a5eaf14d27a4e3f
@@ -1,3 +1,8 @@
1
+ # 1.3.1
2
+
3
+ * Avoid dep warnings about using `raise_error` without any arguments
4
+ * Merge #17 to avoid `NameError` (thanks @fcarrega)
5
+
1
6
  # 1.3.0
2
7
 
3
8
  * Use RSpec 3 for development
@@ -46,4 +51,4 @@
46
51
  # 0.9.0
47
52
 
48
53
  * Hello!
49
- * Provides ``be_valid_css`` and ``be_valid_xhtml`` matchers for rspec to talk to w3c validators.
54
+ * Provides ``be_valid_css`` and ``be_valid_xhtml`` matchers for rspec to talk to w3c validators.
data/README.md CHANGED
@@ -10,14 +10,6 @@ To use be_valid_asset in your project, add it to your Gemfile:
10
10
  gem 'be_valid_asset'
11
11
  ```
12
12
 
13
- Alternatively you can install it as a Rails plugin:
14
-
15
- ```ruby
16
- ./script/plugin install git://github.com/unboxed/be_valid_asset.git
17
- ```
18
-
19
- (Warning: This method is not recommended, we strongly encourage you to manage gem dependencies via [Bundler](http://gembundler.com/))
20
-
21
13
  Add the following to `spec/support/be_valid_asset.rb`:
22
14
 
23
15
  ```ruby
@@ -1,3 +1,4 @@
1
+ require 'rspec'
1
2
 
2
3
  module BeValidAsset
3
4
 
@@ -1,3 +1,3 @@
1
1
  module BeValidAsset
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -57,7 +57,7 @@ RSpec.describe 'be_valid_css' do
57
57
  BeValidAsset::Configuration.display_invalid_content = false
58
58
  end
59
59
 
60
- it "should fail unless resposne is HTTP OK" do
60
+ it "should fail unless response is HTTP OK" do
61
61
  css = get_file('valid.css')
62
62
 
63
63
  r = Net::HTTPServiceUnavailable.new('1.1', 503, 'Service Unavailable')
@@ -67,7 +67,7 @@ RSpec.describe 'be_valid_css' do
67
67
 
68
68
  expect {
69
69
  expect(css).to be_valid_css
70
- }.to raise_error
70
+ }.to raise_error(RuntimeError, "HTTP error: 503")
71
71
  end
72
72
 
73
73
  it "should mark test as pending if ENV['NONET'] is true" do
@@ -165,7 +165,7 @@ RSpec.describe 'be_valid_css' do
165
165
 
166
166
  expect {
167
167
  expect(css).to be_valid_css
168
- }.to raise_error
168
+ }.to raise_error(RuntimeError, "HTTP error: 503")
169
169
  expect(Dir.glob(BeValidAsset::Configuration.cache_path + '/*').size).to eql(count)
170
170
  end
171
171
 
@@ -192,4 +192,4 @@ RSpec.describe 'be_valid_css' do
192
192
  ENV.delete('NONET')
193
193
  end
194
194
  end
195
- end
195
+ end
@@ -63,7 +63,7 @@ RSpec.describe 'be_valid_feed' do
63
63
  BeValidAsset::Configuration.display_invalid_content = false
64
64
  end
65
65
 
66
- it "should fail unless resposne is HTTP OK" do
66
+ it "should fail unless response is HTTP OK" do
67
67
  feed = get_file('valid_feed.xml')
68
68
 
69
69
  r = Net::HTTPServiceUnavailable.new('1.1', 503, 'Service Unavailable')
@@ -73,7 +73,7 @@ RSpec.describe 'be_valid_feed' do
73
73
 
74
74
  expect {
75
75
  expect(feed).to be_valid_feed
76
- }.to raise_error
76
+ }.to raise_error(RuntimeError, "HTTP error: 503")
77
77
  end
78
78
 
79
79
  it "should mark test as pending if ENV['NONET'] is true" do
@@ -148,7 +148,7 @@ RSpec.describe 'be_valid_feed' do
148
148
 
149
149
  expect {
150
150
  expect(feed).to be_valid_feed
151
- }.to raise_error
151
+ }.to raise_error(RuntimeError, "HTTP error: 503")
152
152
  expect(Dir.glob(BeValidAsset::Configuration.cache_path + '/*').size).to eql(count)
153
153
  end
154
154
 
@@ -148,7 +148,7 @@ RSpec.describe 'be_valid_markup' do
148
148
  }.to raise_error(SpecFailed)
149
149
  end
150
150
 
151
- it "should fail unless resposne is HTTP OK" do
151
+ it "should fail unless response is HTTP OK" do
152
152
  html = get_file('valid.html')
153
153
 
154
154
  r = Net::HTTPServiceUnavailable.new('1.1', 503, 'Service Unavailable')
@@ -158,7 +158,7 @@ RSpec.describe 'be_valid_markup' do
158
158
 
159
159
  expect {
160
160
  expect(html).to be_valid_markup
161
- }.to raise_error
161
+ }.to raise_error(RuntimeError, "HTTP error: 503")
162
162
  end
163
163
 
164
164
  it "should mark test as pending if network tests are disabled" do
@@ -235,7 +235,7 @@ RSpec.describe 'be_valid_markup' do
235
235
 
236
236
  expect {
237
237
  expect(html).to be_valid_markup
238
- }.to raise_error
238
+ }.to raise_error(RuntimeError, "HTTP error: 503")
239
239
  expect(Dir.glob(BeValidAsset::Configuration.cache_path + '/*').size).to eql(count)
240
240
  end
241
241
 
@@ -34,4 +34,4 @@ class MockResponse
34
34
  def source
35
35
  @source
36
36
  end
37
- end
37
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: be_valid_asset
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Tomlins
@@ -14,20 +14,20 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2014-09-30 00:00:00.000000000 Z
17
+ date: 2016-07-26 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rspec
21
21
  requirement: !ruby/object:Gem::Requirement
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
29
  requirements:
30
- - - '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
33
  description: Provides be_valid_markup, be_valid_css and be_valid_feed matchers for
@@ -38,8 +38,8 @@ executables: []
38
38
  extensions: []
39
39
  extra_rdoc_files: []
40
40
  files:
41
- - .gitignore
42
- - .rspec
41
+ - ".gitignore"
42
+ - ".rspec"
43
43
  - CHANGELOG.md
44
44
  - Gemfile
45
45
  - LICENSE.txt
@@ -83,17 +83,17 @@ require_paths:
83
83
  - lib
84
84
  required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - '>='
91
+ - - ">="
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.4.1
96
+ rubygems_version: 2.5.1
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Markup and asset validation for RSpec