Sha256: c3295d71b158bea175acf546ab13e9cb1b93e7358b3b1c8a65b34c577d0a6365
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 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' => {'permissions' => [], 'organisation' => nil}} } end def test_user_params_creation expected = {'uid' => 'abcde', 'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk', "permissions" => [], "organisation" => nil} assert_equal expected, GDS::SSO::User.user_params_from_auth_hash(@auth_hash) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gds-sso-6.0.0 | test/user_test.rb |