openid_login_button: "Continue"
openid:
title: Log in with OpenID
- alt: Log in with an OpenID URL
+ alt: OpenID logo
google:
title: Log in with Google
- alt: Log in with a Google OpenID
+ alt: Google logo
facebook:
title: Log in with Facebook
- alt: Log in with a Facebook Account
+ alt: Facebook logo
microsoft:
title: Log in with Microsoft
- alt: Log in with a Microsoft Account
+ alt: Microsoft logo
github:
title: Log in with GitHub
- alt: Log in with a GitHub Account
+ alt: GitHub logo
wikipedia:
title: Log in with Wikipedia
- alt: Log in with a Wikipedia Account
+ alt: Wikipedia logo
oauth:
authorize:
title: "Authorize access to your account"
def test_auth_button
button = auth_button("google", "google")
- img_tag = "<img alt=\"Log in with a Google OpenID\" class=\"rounded-1\" src=\"/images/google.svg\" width=\"36\" height=\"36\" />"
+ img_tag = "<img alt=\"Google logo\" class=\"rounded-1\" src=\"/images/google.svg\" width=\"36\" height=\"36\" />"
assert_equal("<a class=\"auth_button btn btn-light mx-1 p-2 d-block\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
end