IZ MS; fixing parser spec

This commit is contained in:
maxwell 2010-11-01 14:50:54 -07:00
parent 3aab691c78
commit ccf897ed62

View file

@ -46,20 +46,12 @@ describe Diaspora::Parser do
it "should create a new person upon getting a person request" do it "should create a new person upon getting a person request" do
new_person = Factory.build(:person) new_person = Factory.build(:person)
puts new_person.persisted?
Person.should_receive(:by_account_identifier).and_return(new_person) Person.should_receive(:by_account_identifier).and_return(new_person)
puts new_person.persisted?
request = Request.instantiate(:to =>"http://www.google.com/", :from => new_person) request = Request.instantiate(:to =>"http://www.google.com/", :from => new_person)
puts new_person.persisted?
xml = request.to_diaspora_xml xml = request.to_diaspora_xml
user user
puts Person.count lambda { user.receive xml, new_person }.should change(Person, :count).by(1)
user.receive xml, new_person
puts Person.count
#lambda { user.receive xml, new_person }.should change(Person, :count).by(1)
end end