test/storage/sql_test.rb in vines-0.1.1 vs test/storage/sql_test.rb in vines-0.2.0

- old
+ new

@@ -23,11 +23,11 @@ end full = Vines::Storage::Sql::User.new( :jid => 'full@wonderland.lit', :name => 'Tester', :password => BCrypt::Password.create('secret'), - :vcard => StorageTests::VCARD.to_xml) + :vcard => VCARD.to_xml) full.contacts << Vines::Storage::Sql::Contact.new( :jid => 'contact1@wonderland.lit', :name => 'Contact1', :groups => groups[0, 2], :subscription => 'both') @@ -35,9 +35,16 @@ :jid => 'contact2@wonderland.lit', :name => 'Contact2', :groups => groups[2, 2], :subscription => 'both') full.save + + fragment = Vines::Storage::Sql::Fragment.new( + :user => full, + :root => 'characters', + :namespace => 'urn:wonderland', + :xml => FRAGMENT.to_xml) + fragment.save end def teardown File.delete(DB_FILE) if File.exist?(DB_FILE) end