test/user_test.rb in gds-sso-4.0.0 vs test/user_test.rb in gds-sso-5.0.0
- old
+ new
@@ -6,14 +6,14 @@
@auth_hash = {
'provider' => 'gds',
'uid' => 'abcde',
'credentials' => {'token' => 'abcdefg', 'secret' => 'abcdefg'},
'info' => {'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk'},
- 'extra' => {'user' => {'permissions' => []}}
+ 'extra' => {'user' => {'permissions' => [], 'organisations' => []}}
}
end
def test_user_params_creation
- expected = {'uid' => 'abcde', 'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk', "permissions" => []}
+ expected = {'uid' => 'abcde', 'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk', "permissions" => [], "organisations" => []}
assert_equal expected, GDS::SSO::User.user_params_from_auth_hash(@auth_hash)
end
-end
\ No newline at end of file
+end