spec/guard/webrick/server_spec.rb in guard-webrick-0.1.1 vs spec/guard/webrick/server_spec.rb in guard-webrick-0.1.2

- old
+ new

@@ -20,9 +20,20 @@ :Port => 3000, :DocumentRoot => File.expand_path(File.join(Dir::pwd, 'public')) ) new_server(:docroot => 'public') end + + it "should create an ssl server" do + ::WEBrick::HTTPServer.should_receive(:new).with( + :BindAddress => '0.0.0.0', + :Port => 3000, + :DocumentRoot => Dir::pwd, + :SSLEnable => true, + :SSLCertName => [%w[CN localhost]] + ) + new_server(:ssl => true) + end end describe "start" do subject { new_server }