Created
July 6, 2014 07:22
-
-
Save zkessin/3f5fa716a1092862320b to your computer and use it in GitHub Desktop.
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
prop_render() -> | |
{ok, online_users_dtl} = erlydtl:compile_file("templates/online_users.dtl", online_users_dtl, []), | |
?FORALL(Rs, | |
list(presence()), | |
begin | |
{ok,HTML} = vest_current_users:render(Rs), | |
mochiweb_html:parse(iolist_to_binary(HTML)), %% assert that it is valid HTML | |
[_Prefix,Rows,_Suffix] = HTML, | |
length(Rows) =:= length(Rs) | |
end). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment