Sha256: 02106114067a4e53da0945f7895cd2d1bc17ad0e7615aa0a89648bcb7b6b69d5
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' require 'net/http/server/daemon' describe Net::HTTP::Server::Daemon do subject { described_class } describe "#initialize" do subject { described_class.new { |request,response| } } it "should have a default host" do subject.host.should_not be_nil end it "should have a default port" do subject.port.should_not be_nil end it "should require a HTTP Request handler" do lambda { described_class.new }.should raise_error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
net-http-server-0.2.2 | spec/net/http/server/daemon_spec.rb |