From f4bace85b3affa6a6d37363cc814069d4ad20702 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 29 Jul 2010 10:17:51 -0700 Subject: [PATCH] No more key deletion in specs, parser included correctly --- spec/user_encryption_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/user_encryption_spec.rb b/spec/user_encryption_spec.rb index dc68d7fa7..6b2cc8c0e 100644 --- a/spec/user_encryption_spec.rb +++ b/spec/user_encryption_spec.rb @@ -1,5 +1,6 @@ require File.dirname(__FILE__) + '/spec_helper' include ApplicationHelper +include Diaspora::DiasporaParser describe 'user encryption' do before :all do @@ -74,7 +75,7 @@ describe 'user encryption' do xml = Request.build_xml_for [request] person.destroy personcount = Person.all.count - Diaspora::DiasporaParser.store_objects_from_xml(xml) + store_objects_from_xml(xml) Person.all.count.should == personcount + 1 new_person = Person.first(:url => "http://test.url/") new_person.key_fingerprint.nil?.should == false @@ -135,7 +136,7 @@ describe 'user encryption' do xml = Post.build_xml_for([message]) message.destroy Post.count.should be 0 - Diaspora::DiasporaParser.store_objects_from_xml(xml) + store_objects_from_xml(xml) Post.count.should be 0 end