test/stanza/message_test.rb in vines-0.3.2 vs test/stanza/message_test.rb in vines-0.4.0

- old
+ new

@@ -1,17 +1,18 @@ # encoding: UTF-8 +require 'tmpdir' require 'vines' require 'ext/nokogiri' require 'minitest/autorun' class MessageTest < MiniTest::Unit::TestCase def setup @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_bad_type_returns_error @@ -80,10 +81,10 @@ recipient = MiniTest::Mock.new recipient.expect(:user, romeo) recipient.expect(:write, nil, [expected]) @config.host 'verona.lit' do - storage(:fs) { dir '.' } + storage(:fs) { dir Dir.tmpdir } end @stream.expect(:config, @config) @stream.expect(:user, alice) @stream.expect(:connected_resources, [recipient], [romeo.jid])