Sha256: 860ecdaa7c98df090412fdda1d17fc887339fca7acdc6ce9f7b5884d80735404
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 Bytes
Contents
require 'spec_helper' require 'net/http/server/daemon' describe Net::HTTP::Server::Daemon do subject { Net::HTTP::Server::Daemon } describe "new" do it "should have a default host" do daemon = subject.new { |request,socket| } daemon.host.should_not be_nil end it "should have a default port" do daemon = subject.new { |request,socket| } daemon.port.should_not be_nil end it "should require a HTTP Request handler" do lambda { subject.new }.should raise_error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
net-http-server-0.2.1 | spec/net/http/server/daemon_spec.rb |
net-http-server-0.2.0 | spec/net/http/server/daemon_spec.rb |
net-http-server-0.1.0 | spec/server/daemon_spec.rb |