test/user_test.rb in gds-sso-0.5.4 vs test/user_test.rb in gds-sso-0.6.0

- old
+ new

@@ -5,15 +5,15 @@ def setup @auth_hash = { 'provider' => 'gds', 'uid' => 'abcde', 'credentials' => {'token' => 'abcdefg', 'secret' => 'abcdefg'}, - 'user_info' => {'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk'}, - 'extra' => {'user_hash' => {'uid' => 'abcde', 'version' => 1, 'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk', 'github' => 'fidothe', 'twitter' => 'fidothe'}} + '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', 'version' => 1, 'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk'} + 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 \ No newline at end of file