Skip to content

Commit

Permalink
Avoid warnings about using the no-argument form of raise_error
Browse files Browse the repository at this point in the history
  • Loading branch information
h-lame committed Jul 26, 2016
1 parent 0646306 commit 2d7d3b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions spec/be_valid_asset/be_valid_css_spec.rb
Expand Up @@ -67,7 +67,7 @@

expect {
expect(css).to be_valid_css
}.to raise_error
}.to raise_error(RuntimeError, "HTTP error: 503")
end

it "should mark test as pending if ENV['NONET'] is true" do
Expand Down Expand Up @@ -165,7 +165,7 @@

expect {
expect(css).to be_valid_css
}.to raise_error
}.to raise_error(RuntimeError, "HTTP error: 503")
expect(Dir.glob(BeValidAsset::Configuration.cache_path + '/*').size).to eql(count)
end

Expand All @@ -192,4 +192,4 @@
ENV.delete('NONET')
end
end
end
end
4 changes: 2 additions & 2 deletions spec/be_valid_asset/be_valid_feed_spec.rb
Expand Up @@ -73,7 +73,7 @@

expect {
expect(feed).to be_valid_feed
}.to raise_error
}.to raise_error(RuntimeError, "HTTP error: 503")
end

it "should mark test as pending if ENV['NONET'] is true" do
Expand Down Expand Up @@ -148,7 +148,7 @@

expect {
expect(feed).to be_valid_feed
}.to raise_error
}.to raise_error(RuntimeError, "HTTP error: 503")
expect(Dir.glob(BeValidAsset::Configuration.cache_path + '/*').size).to eql(count)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/be_valid_asset/be_valid_markup_spec.rb
Expand Up @@ -158,7 +158,7 @@

expect {
expect(html).to be_valid_markup
}.to raise_error
}.to raise_error(RuntimeError, "HTTP error: 503")
end

it "should mark test as pending if network tests are disabled" do
Expand Down Expand Up @@ -235,7 +235,7 @@

expect {
expect(html).to be_valid_markup
}.to raise_error
}.to raise_error(RuntimeError, "HTTP error: 503")
expect(Dir.glob(BeValidAsset::Configuration.cache_path + '/*').size).to eql(count)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -34,4 +34,4 @@ def body
def source
@source
end
end
end

0 comments on commit 2d7d3b9

Please sign in to comment.