[DRE-commits] [ruby-httparty] 03/05: add exception_spec.patch

Cédric Boutillier boutil at moszumanska.debian.org
Fri Feb 28 12:23:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-httparty.

commit c3c0dd7550cd7d0879082863479fc5c4c6b71b28
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Feb 28 11:42:00 2014 +0100

    add exception_spec.patch
---
 debian/patches/exception_spec.patch | 46 +++++++++++++++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 47 insertions(+)

diff --git a/debian/patches/exception_spec.patch b/debian/patches/exception_spec.patch
new file mode 100644
index 0000000..405ff29
--- /dev/null
+++ b/debian/patches/exception_spec.patch
@@ -0,0 +1,46 @@
+Description: rewrite exception_spec.rb to adapt to newer RSpec
+ and avoid subject memoization issues
+Origin: vendor
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Update: 2014-02-28
+
+--- a/spec/httparty/exception_spec.rb
++++ b/spec/httparty/exception_spec.rb
+@@ -1,23 +1,21 @@
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
+ 
+ describe HTTParty::Error do
+-  subject { described_class }
++  specify { described_class.ancestors.should include(StandardError) }
++end
+ 
+-  its(:ancestors) { should include(StandardError) }
++describe HTTParty::UnsupportedFormat do
++  specify { described_class.ancestors.should include(HTTParty::Error) }
++end
+ 
+-  describe HTTParty::UnsupportedFormat do
+-    its(:ancestors) { should include(HTTParty::Error) }
+-  end
+-  
+-  describe HTTParty::UnsupportedURIScheme do
+-    its(:ancestors) { should include(HTTParty::Error) }
+-  end
++describe HTTParty::UnsupportedURIScheme do
++  specify { described_class.ancestors.should include(HTTParty::Error) }
++end
+ 
+-  describe HTTParty::ResponseError do
+-    its(:ancestors) { should include(HTTParty::Error) }
+-  end
++describe HTTParty::ResponseError do
++  specify { described_class.ancestors.should include(HTTParty::Error) }
++end
+ 
+-  describe HTTParty::RedirectionTooDeep do
+-    its(:ancestors) { should include(HTTParty::ResponseError) }
+-  end
++describe HTTParty::RedirectionTooDeep do
++  specify { described_class.ancestors.should include(HTTParty::ResponseError) }
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 2ce87b5..4b7df14 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ clean_spec_helper.patch
 newer_rspec.patch
 deactivate_failing_test.patch
 #fix_rspec_deprecation_warning.patch
+exception_spec.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-httparty.git



More information about the Pkg-ruby-extras-commits mailing list