diff options
author | danielgrippi <danielgrippi@gmail.com> | 2011-07-12 11:12:08 +0400 |
---|---|---|
committer | danielgrippi <danielgrippi@gmail.com> | 2011-07-12 11:12:08 +0400 |
commit | 039b65b5ccd812c01f2cf37aacbc5f13561e479f (patch) | |
tree | 01fc16116bd41a9b29feba33673939ac5981312a /spec | |
parent | 0fbf366ef125014b3bc9835ef4d5bf5b1daabb21 (diff) |
a little js cleanup for post.js
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/widgets/post-spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/widgets/post-spec.js b/spec/javascripts/widgets/post-spec.js index b31e193dc..d50dad851 100644 --- a/spec/javascripts/widgets/post-spec.js +++ b/spec/javascripts/widgets/post-spec.js @@ -17,14 +17,14 @@ describe("Diaspora", function() { it("adds a listener for the click event on a.expand_likes", function() { spyOn(window, "$").andCallThrough(); Diaspora.widgets.post.start(); - expect($).toHaveBeenCalledWith(Diaspora.widgets.post.expandLikesSelector); + expect($).toHaveBeenCalledWith(Diaspora.widgets.post.likes.expanders); $.reset(); }); it("adds a listener for ajax:success and ajax:failure", function() { spyOn(window, "$").andCallThrough(); Diaspora.widgets.post.start(); - expect($).toHaveBeenCalledWith(Diaspora.widgets.post.likesSelector); + expect($).toHaveBeenCalledWith(Diaspora.widgets.post.likes.actions); $.reset(); }); }); |