fixed a broken common.rb spec

This commit is contained in:
maxwell 2010-06-25 23:08:59 -07:00
parent 6467f943da
commit c99416ca67
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ module Diaspora
def notify_friends
if self.person_id == User.first.id
xml = Post.build_xml_for(self)
xml = Post.build_xml_for([self])
@@queue.add_post_request( friends_with_permissions, CGI::escape(xml) )
@@queue.process
end

View file

@ -59,8 +59,8 @@ describe Diaspora do
end
it "should send an owners post to their friends" do
Post.stub(:build_xml_for).and_return(true)
Post.should_receive(:build_xml_for).and_return true
q = Post.send (:class_variable_get, :@@queue)
q.should_receive :process
@post.save
end