Sha256: 2efab6374bd9910925328fa48aa474923ee76bafac35ea33d8c36afec087500a
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require 'test_helper' require 'gds-sso/user' class TestUser < Test::Unit::TestCase def setup @auth_hash = { 'provider' => 'gds', 'uid' => 'abcde', 'credentials' => {'token' => 'abcdefg', 'secret' => 'abcdefg'}, 'info' => {'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk'}, 'extra' => {'user' => {'uid' => 'abcde', 'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk'}} } end def test_user_params_creation expected = {'uid' => 'abcde', 'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk'} assert_equal expected, GDS::SSO::User.user_params_from_auth_hash(@auth_hash) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gds-sso-0.6.1 | test/user_test.rb |
gds-sso-0.6.0 | test/user_test.rb |