No more key deletion in specs, parser included correctly
This commit is contained in:
parent
9750684e61
commit
f4bace85b3
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
require File.dirname(__FILE__) + '/spec_helper'
|
require File.dirname(__FILE__) + '/spec_helper'
|
||||||
include ApplicationHelper
|
include ApplicationHelper
|
||||||
|
include Diaspora::DiasporaParser
|
||||||
|
|
||||||
describe 'user encryption' do
|
describe 'user encryption' do
|
||||||
before :all do
|
before :all do
|
||||||
|
|
@ -74,7 +75,7 @@ describe 'user encryption' do
|
||||||
xml = Request.build_xml_for [request]
|
xml = Request.build_xml_for [request]
|
||||||
person.destroy
|
person.destroy
|
||||||
personcount = Person.all.count
|
personcount = Person.all.count
|
||||||
Diaspora::DiasporaParser.store_objects_from_xml(xml)
|
store_objects_from_xml(xml)
|
||||||
Person.all.count.should == personcount + 1
|
Person.all.count.should == personcount + 1
|
||||||
new_person = Person.first(:url => "http://test.url/")
|
new_person = Person.first(:url => "http://test.url/")
|
||||||
new_person.key_fingerprint.nil?.should == false
|
new_person.key_fingerprint.nil?.should == false
|
||||||
|
|
@ -135,7 +136,7 @@ describe 'user encryption' do
|
||||||
xml = Post.build_xml_for([message])
|
xml = Post.build_xml_for([message])
|
||||||
message.destroy
|
message.destroy
|
||||||
Post.count.should be 0
|
Post.count.should be 0
|
||||||
Diaspora::DiasporaParser.store_objects_from_xml(xml)
|
store_objects_from_xml(xml)
|
||||||
Post.count.should be 0
|
Post.count.should be 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue