[DRE-commits] [ruby-omniauth-facebook] 02/03: Add stub_request_scheme.patch to stub Request#scheme method and avoid test failures (Closes: #747740)
Cédric Boutillier
boutil at moszumanska.debian.org
Mon Jul 21 18:39:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-omniauth-facebook.
commit d1e2b15419afedaa8b91b72ef72323acd4b1fa28
Author: Cédric Boutillier <boutil at debian.org>
Date: Mon Jul 21 20:21:27 2014 +0200
Add stub_request_scheme.patch to stub Request#scheme method and avoid test failures (Closes: #747740)
---
debian/changelog | 6 ++++--
debian/patches/series | 1 +
debian/patches/stub_request_scheme.patch | 20 ++++++++++++++++++++
3 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 04475de..9f578dd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,11 @@
-ruby-omniauth-facebook (1.6.0-2) UNRELEASED; urgency=medium
+ruby-omniauth-facebook (1.6.0-3) UNRELEASED; urgency=medium
* Team upload.
* Simplify debian/ruby-tests.rb to require the unique test file test/test.rb
+ * Add stub_request_scheme.patch to stub Request#scheme method and avoid test
+ failures (Closes: #747740)
- -- Cédric Boutillier <boutil at debian.org> Mon, 19 May 2014 23:54:02 +0200
+ -- Cédric Boutillier <boutil at debian.org> Mon, 21 Jul 2014 20:20:25 +0200
ruby-omniauth-facebook (1.6.0-1) unstable; urgency=low
diff --git a/debian/patches/series b/debian/patches/series
index 1e07cfb..07dcb57 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
removing_bundler.diff
+stub_request_scheme.patch
diff --git a/debian/patches/stub_request_scheme.patch b/debian/patches/stub_request_scheme.patch
new file mode 100644
index 0000000..796c9ff
--- /dev/null
+++ b/debian/patches/stub_request_scheme.patch
@@ -0,0 +1,20 @@
+Description: stub the Request#scheme method to return "http" in test/helper.rb
+ This avoids to get test errors with the following message
+ unexpected invocation: #<Mock:Request>.scheme()
+Origin: vendor
+Author: Cédric Boutillier <boutil at debian.org>
+Bug: https://github.com/mkdynamic/omniauth-facebook/issues/153
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747740
+Forwarded: https://github.com/mkdynamic/omniauth-facebook/issues/153#issuecomment-49643317
+Last-Update: 2014-07-21
+
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -36,6 +36,7 @@
+ @request.stubs(:cookies).returns({})
+ @request.stubs(:env).returns({})
+ @request.stubs(:ssl?).returns(false)
++ @request.stubs(:scheme).returns("http")
+
+ @client_id = '123'
+ @client_secret = '53cr3tz'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-omniauth-facebook.git
More information about the Pkg-ruby-extras-commits
mailing list