Skip to content

Commit

Permalink
Remove some bad old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxstr committed Jan 12, 2017
1 parent ed8688d commit aaf4ecd
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions test/openid_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,18 @@ setup() ->
[ application:start(X) || X <- [ crypto, ssl, sasl, inets, ibrowse ] ].

discover2_test_() ->
Cases = [{"https://www.google.com/accounts/o8/id",
#openid_authreq{opURLs = ["https://www.google.com/accounts/o8/ud"],
Cases = [{"http://steamcommunity.com/openid",
#openid_authreq{opURLs = ["https://steamcommunity.com/openid/login"],
version = {2,0},
claimedID = "http://specs.openid.net/auth/2.0/identifier_select",
localID = "http://specs.openid.net/auth/2.0/identifier_select",
assoc = none}},
{"http://flickr.com/exbrend",
#openid_authreq{opURLs = ["https://open.login.yahooapis.com/openid/op/auth"],
version = {2,0},
claimedID = "http://flickr.com/exbrend",
localID = "http://flickr.com/exbrend",
assoc = none}}
],
{setup, fun setup/0, [?_assertEqual(Result, openid:discover(URL))
|| {URL, Result} <- Cases ]}.

discover1_test_() ->
Cases = [{"blog.paulbonser.com",
#openid_authreq{opURLs = ["http://www.livejournal.com/openid/server.bml"],
version = {1,1},
claimedID = "http://blog.paulbonser.com/",
localID = "http://misterpib.livejournal.com/",
assoc = none}}
],
Cases = [],
{setup, fun setup/0, [?_assertEqual(Result, openid:discover(URL))
|| {URL, Result} <- Cases ]}.

0 comments on commit aaf4ecd

Please sign in to comment.