Skip to content

Instantly share code, notes, and snippets.

@jystewart
Created June 14, 2012 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jystewart/2930303 to your computer and use it in GitHub Desktop.
Save jystewart/2930303 to your computer and use it in GitHub Desktop.
Updated test for use in govuk_content_models
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