test/stanza_test.rb in vines-0.3.2 vs test/stanza_test.rb in vines-0.4.0
- old
+ new
@@ -1,7 +1,8 @@
# encoding: UTF-8
+require 'tmpdir'
require 'vines'
require 'ext/nokogiri'
require 'minitest/autorun'
class StanzaTest < MiniTest::Unit::TestCase
@@ -9,10 +10,10 @@
@alice = Vines::JID.new('alice@wonderland.lit/tea')
@romeo = Vines::JID.new('romeo@verona.lit/balcony')
@stream = MiniTest::Mock.new
@config = Vines::Config.new do
host 'wonderland.lit' do
- storage(:fs) { dir '.' }
+ storage(:fs) { dir Dir.tmpdir }
end
end
end
def test_validate_missing_addresses