class TestMLSession
Public Instance Methods
test_all()
click to toggle source
# File vendor/qwik/lib/qwik/ml-session.rb, line 319 def test_all return config = Qwik::Config.new hash = { :logger => QuickML::MockLogger.new, :sites_dir => '.', } config.update(hash) QuickML::ServerMemory.init_mutex(config) QuickML::ServerMemory.init_catalog(config) old_test_memory = $test_memory $test_memory = Qwik::ServerMemory.new(config) # FIXME: Ugly. socket = QuickML::MockSocket.new "HELO localhost MAIL FROM: user@example.net RCPT TO: test@example.com DATA To: test@example.com From: user@example.net Subject: create create new ML. . QUIT " session = QuickML::Session.new(config, socket) session.start $test_memory = old_test_memory end