class TestMockSmtpServer

Public Instance Methods

test_all() click to toggle source
# File vendor/qwik/lib/qwik/mock-sendmail.rb, line 66
def test_all
  # test_initialize
  s = MockSmtpServer.new('localhost', '9195')

  # test_gets
  is '220 qwik.jp ESMTP MockSmtpServer', s.gets

  # test_print
  s.print('t')
  is ['t'], s.buffer
end