[DRE-commits] [ruby-omniauth-crowd] 03/04: Add patch to support new webmock
Balasankar C
balasankarc-guest at moszumanska.debian.org
Thu Feb 25 05:48:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
balasankarc-guest pushed a commit to branch master
in repository ruby-omniauth-crowd.
commit 49675eeb6815a3273de8e52fbf2d75989250221b
Author: Balasankar C <balasankarc at autistici.org>
Date: Thu Feb 25 11:15:12 2016 +0530
Add patch to support new webmock
---
debian/patches/fix-test-header.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/fix-test-header.patch b/debian/patches/fix-test-header.patch
new file mode 100644
index 0000000..023b282
--- /dev/null
+++ b/debian/patches/fix-test-header.patch
@@ -0,0 +1,18 @@
+Description: Fix test to match new webmock syntax.
+ In new webmock syntax, assertion on response code is done using a key to the
+ headers. Direct usage of code as a hash key is deprecated.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-02-25
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/omniauth/strategies/crowd_spec.rb
++++ b/spec/omniauth/strategies/crowd_spec.rb
+@@ -150,7 +150,7 @@
+ describe 'GET /auth/crowd/callback with credentials will fail' do
+ before do
+ stub_request(:post, "https://bogus_app:bogus_app_password@crowd.example.org/rest/usermanagement/latest/authentication?username=foo").
+- to_return(:code=>400)
++ to_return(:headers => {"Code" => "400"})
+ get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
+ end
+ it 'should fail' do
diff --git a/debian/patches/series b/debian/patches/series
index 0712931..220c29f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
remove-bundler.patch
+fix-test-header.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-omniauth-crowd.git
More information about the Pkg-ruby-extras-commits
mailing list