[DRE-commits] [ruby-ridley] 02/02: Patch: Disable tests that require network
Hleb Valoshka
tsfgnu-guest at moszumanska.debian.org
Mon Aug 10 15:55:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
tsfgnu-guest pushed a commit to branch master
in repository ruby-ridley.
commit cd310cd94140961078f40de038706fd8261b17fb
Author: Hleb Valoshka <375gnu at gmail.com>
Date: Mon Aug 10 11:38:08 2015 +0300
Patch: Disable tests that require network
---
.../0003-Disable-tests-that-require-network.patch | 51 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 52 insertions(+)
diff --git a/debian/patches/0003-Disable-tests-that-require-network.patch b/debian/patches/0003-Disable-tests-that-require-network.patch
new file mode 100644
index 0000000..faf1aac
--- /dev/null
+++ b/debian/patches/0003-Disable-tests-that-require-network.patch
@@ -0,0 +1,51 @@
+From: Hleb Valoshka <375gnu at gmail.com>
+Date: Mon, 10 Aug 2015 11:35:21 +0300
+Subject: Disable tests that require network
+
+---
+ spec/unit/ridley/connection_spec.rb | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/spec/unit/ridley/connection_spec.rb b/spec/unit/ridley/connection_spec.rb
+index 689ac96..08fa287 100644
+--- a/spec/unit/ridley/connection_spec.rb
++++ b/spec/unit/ridley/connection_spec.rb
+@@ -14,7 +14,7 @@ describe Ridley::Connection do
+ stub_request(:get, "https://api.opscode.com/organizations/vialstudios").to_return(status: 500, body: "")
+ end
+
+- it "attempts five (5) retries by default" do
++ xit "attempts five (5) retries by default" do
+ expect {
+ subject.get('organizations/vialstudios')
+ }.to raise_error
+@@ -26,7 +26,7 @@ describe Ridley::Connection do
+ described_class.new(server_url, client_name, client_key, retries: 2)
+ end
+
+- it "attempts two (2) retries" do
++ xit "attempts two (2) retries" do
+ expect {
+ subject.get('organizations/vialstudios')
+ }.to raise_error
+@@ -59,17 +59,17 @@ describe Ridley::Connection do
+ stub_request(:get, "http://test.it/file").to_return(status: 200, body: contents)
+ end
+
+- it "creates a destination file on disk" do
++ xit "creates a destination file on disk" do
+ subject.stream(target, destination)
+
+ expect(File.exist?(destination)).to be_truthy
+ end
+
+- it "returns true when the file was copied" do
++ xit "returns true when the file was copied" do
+ expect(subject.stream(target, destination)).to be_truthy
+ end
+
+- it "contains the contents of the response body" do
++ xit "contains the contents of the response body" do
+ subject.stream(target, destination)
+
+ expect(File.read(destination)).to include(contents)
diff --git a/debian/patches/series b/debian/patches/series
index 016fee5..2a706e9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Don-t-use-rubygems-bundler-and-spork-in-tests-use-rs.patch
0002-Convert-specs-to-RSpec-3.0.4-syntax-with-Transpec.patch
+0003-Disable-tests-that-require-network.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-ridley.git
More information about the Pkg-ruby-extras-commits
mailing list