[DRE-commits] [ruby-omniauth-saml] 04/04: Make tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Tue Jul 7 18:57:44 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-omniauth-saml.

commit 658d9a4727b8e2d3496315bd87013020ba6310e8
Author: Balasankar C <balasankarc at autistici.org>
Date:   Wed Jul 8 00:21:38 2015 +0530

    Make tests run
---
 debian/patches/series    |  2 ++
 debian/patches/simplecov | 15 +++++++++++++++
 debian/patches/spec-fix  | 42 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..965ef8a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+spec-fix
+simplecov
diff --git a/debian/patches/simplecov b/debian/patches/simplecov
new file mode 100644
index 0000000..0b2ca02
--- /dev/null
+++ b/debian/patches/simplecov
@@ -0,0 +1,15 @@
+Description: Disable simplecov
+ Disable simplecov while running tests
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-07-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,6 +1,3 @@
+-require 'simplecov'
+-SimpleCov.start
+-
+ require 'omniauth-saml'
+ require 'rack/test'
+ require 'rexml/document'
diff --git a/debian/patches/spec-fix b/debian/patches/spec-fix
new file mode 100644
index 0000000..8af949d
--- /dev/null
+++ b/debian/patches/spec-fix
@@ -0,0 +1,42 @@
+Description: Fix specs to use latest ruby-saml
+ Patch to make tests run with latest ruby-saml
+Author: Thiago Xavier <thiagoxvo at gmail.com>
+Last-Update: 2015-07-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/omniauth/strategies/saml_spec.rb
++++ b/spec/omniauth/strategies/saml_spec.rb
+@@ -75,11 +75,11 @@
+       end
+ 
+       it "should set the raw info to all attributes" do
+-        auth_hash['extra']['raw_info'].to_hash.should == {
+-          'first_name'   => 'Rajiv',
+-          'last_name'    => 'Manglani',
+-          'email'        => 'user at example.com',
+-          'company_name' => 'Example Company',
++        auth_hash['extra']['raw_info'].all.to_hash.should == {
++          'first_name'   => ['Rajiv'],
++          'last_name'    => ['Manglani'],
++          'email'        => ['user at example.com'],
++          'company_name' => ['Example Company'],
+           'fingerprint'  => saml_options[:idp_cert_fingerprint]
+         }
+       end
+@@ -97,11 +97,11 @@
+       end
+ 
+       it "should set the raw info to all attributes" do
+-        auth_hash['extra']['raw_info'].to_hash.should == {
+-          'first_name'   => 'Rajiv',
+-          'last_name'    => 'Manglani',
+-          'email'        => 'user at example.com',
+-          'company_name' => 'Example Company',
++        auth_hash['extra']['raw_info'].all.to_hash.should == {
++          'first_name'   => ['Rajiv'],
++          'last_name'    => ['Manglani'],
++          'email'        => ['user at example.com'],
++          'company_name' => ['Example Company'],
+           'fingerprint'  => 'C1:59:74:2B:E8:0C:6C:A9:41:0F:6E:83:F6:D1:52:25:45:58:89:FB'
+         }
+       end

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



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