Commit 658d9a47 authored by Balasankar C's avatar Balasankar C

Make tests run

parent 4297a814
spec-fix
simplecov
Description: Disable simplecov
Disable simplecov while running tests
Author: Balasankar C <balasankarc@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'
Description: Fix specs to use latest ruby-saml
Patch to make tests run with latest ruby-saml
Author: Thiago Xavier <thiagoxvo@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@example.com',
- 'company_name' => 'Example Company',
+ auth_hash['extra']['raw_info'].all.to_hash.should == {
+ 'first_name' => ['Rajiv'],
+ 'last_name' => ['Manglani'],
+ 'email' => ['user@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@example.com',
- 'company_name' => 'Example Company',
+ auth_hash['extra']['raw_info'].all.to_hash.should == {
+ 'first_name' => ['Rajiv'],
+ 'last_name' => ['Manglani'],
+ 'email' => ['user@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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment