Package list ruby-omniauth-facebook / d1e2b15
Add stub_request_scheme.patch to stub Request#scheme method and avoid test failures (Closes: #747740) Cédric Boutillier 7 years ago
3 changed file(s) with 25 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 ruby-omniauth-facebook (1.6.0-2) UNRELEASED; urgency=medium
0 ruby-omniauth-facebook (1.6.0-3) UNRELEASED; urgency=medium
11
22 * Team upload.
33 * Simplify debian/ruby-tests.rb to require the unique test file test/test.rb
4 * Add stub_request_scheme.patch to stub Request#scheme method and avoid test
5 failures (Closes: #747740)
46
5 -- Cédric Boutillier <boutil@debian.org> Mon, 19 May 2014 23:54:02 +0200
7 -- Cédric Boutillier <boutil@debian.org> Mon, 21 Jul 2014 20:20:25 +0200
68
79 ruby-omniauth-facebook (1.6.0-1) unstable; urgency=low
810
00 removing_bundler.diff
1 stub_request_scheme.patch
0 Description: stub the Request#scheme method to return "http" in test/helper.rb
1 This avoids to get test errors with the following message
2 unexpected invocation: #<Mock:Request>.scheme()
3 Origin: vendor
4 Author: Cédric Boutillier <boutil@debian.org>
5 Bug: https://github.com/mkdynamic/omniauth-facebook/issues/153
6 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747740
7 Forwarded: https://github.com/mkdynamic/omniauth-facebook/issues/153#issuecomment-49643317
8 Last-Update: 2014-07-21
9
10 --- a/test/helper.rb
11 +++ b/test/helper.rb
12 @@ -36,6 +36,7 @@
13 @request.stubs(:cookies).returns({})
14 @request.stubs(:env).returns({})
15 @request.stubs(:ssl?).returns(false)
16 + @request.stubs(:scheme).returns("http")
17
18 @client_id = '123'
19 @client_secret = '53cr3tz'