From 2d7d3b9619b4f803936a4f127286464371e0c7dd Mon Sep 17 00:00:00 2001 From: Murray Steele Date: Tue, 26 Jul 2016 10:25:28 +0100 Subject: [PATCH] Avoid warnings about using the no-argument form of raise_error --- spec/be_valid_asset/be_valid_css_spec.rb | 6 +++--- spec/be_valid_asset/be_valid_feed_spec.rb | 4 ++-- spec/be_valid_asset/be_valid_markup_spec.rb | 4 ++-- spec/spec_helper.rb | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/be_valid_asset/be_valid_css_spec.rb b/spec/be_valid_asset/be_valid_css_spec.rb index 04bd12a..2cde4a7 100644 --- a/spec/be_valid_asset/be_valid_css_spec.rb +++ b/spec/be_valid_asset/be_valid_css_spec.rb @@ -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 @@ -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 @@ -192,4 +192,4 @@ ENV.delete('NONET') end end -end \ No newline at end of file +end diff --git a/spec/be_valid_asset/be_valid_feed_spec.rb b/spec/be_valid_asset/be_valid_feed_spec.rb index 33c232f..bbadd88 100644 --- a/spec/be_valid_asset/be_valid_feed_spec.rb +++ b/spec/be_valid_asset/be_valid_feed_spec.rb @@ -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 @@ -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 diff --git a/spec/be_valid_asset/be_valid_markup_spec.rb b/spec/be_valid_asset/be_valid_markup_spec.rb index ceae682..cad5739 100644 --- a/spec/be_valid_asset/be_valid_markup_spec.rb +++ b/spec/be_valid_asset/be_valid_markup_spec.rb @@ -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 @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9d9005e..9a7654d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -34,4 +34,4 @@ def body def source @source end -end \ No newline at end of file +end