Sha256: f1485d3e0d7db0869d231804813393055a892ed0b95efa7e4984627c8fab0ffb

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

require 'assert'

class Sanford::Server

  class BaseTest < Assert::Context
    desc "Sanford::Server"
    setup do
      @service_host = DummyHost.new
      @server = Sanford::Server.new(@service_host)
    end
    subject{ @server }

    should "include DatTCP::Server" do
      assert_includes DatTCP::Server, subject.class.included_modules
    end
  end

  # Sanford::Server#serve is tested in test/system/request_handling_test.rb,
  # it requires multiple parts of Sanford and basically tests a large portion of
  # the entire system

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sanford-0.1.0 test/unit/server_test.rb