Removed stub_request_scheme.patch
Nitesh A Jain
9 years ago
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 | @@ -37,6 +37,7 @@ | |
13 | @request.stubs(:env).returns({}) | |
14 | @request.stubs(:scheme).returns({}) | |
15 | @request.stubs(:ssl?).returns(false) | |
16 | + @request.stubs(:scheme).returns("http") | |
17 | ||
18 | @client_id = '123' | |
19 | @client_secret = '53cr3tz' |