diff --git a/test/javascripts/models/user_test.js b/test/javascripts/models/user_test.js index 81f54af2973..b3ab41bdcfb 100644 --- a/test/javascripts/models/user_test.js +++ b/test/javascripts/models/user_test.js @@ -28,8 +28,8 @@ test("isAllowedToUploadAFile", function() { test("avatarTemplate", function(){ var oldCDN = Discourse.CDN; - equal(Discourse.avatarTemplate("sam", 1), "/user_avatar/sam/{size}/1.png"); + equal(Discourse.User.avatarTemplate("sam", 1), "/user_avatar/sam/{size}/1.png"); Discourse.CDN = "http://awesome.cdn.com"; - equal(Discourse.avatarTemplate("sam", 1), "http://awesome.cdn.com/user_avatar/sam/{size}/1.png"); + equal(Discourse.User.avatarTemplate("sam", 1), "http://awesome.cdn.com/user_avatar/sam/{size}/1.png"); Discourse.CDN = oldCDN; });