Created
June 14, 2012 13:32
-
-
Save jystewart/2930303 to your computer and use it in GitHub Desktop.
Updated test for use in govuk_content_models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "should create new user with oauth params" do | |
auth_hash = { | |
"uid" => "1234abcd", | |
"info" => { | |
"uid" => "1234abcd", | |
"email" => "user@example.com", | |
"name" => "Luther Blisset", | |
} | |
} | |
user = User.find_for_gds_oauth(auth_hash).reload | |
assert_equal "1234abcd", user.uid | |
assert_equal "user@example.com", user.email | |
assert_equal "Luther Blisset", user.name | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment