Sha256: ed78298ed1e7d62119427dfe4ebecb61f6da5e4a0893c5f689fc9d6390af50c5
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
require File.dirname(__FILE__) + "/spec_helper" describe Compp do describe "start" do before(:each) do EM.stub!(:epoll) EM.stub!(:run).and_yield() EM.stub!(:start_server) end it "should use epoll" do EM.should_receive(:epoll) Compp.start(Class.new) end it "should start EM" do EM.should_receive(:run) Compp.start(Class.new) end it "should start a server with the host, port, klass and options specified" do options = {:port => 123, :host => "localhost"} handler = Class.new EM.should_receive(:start_server).with(options[:host], options[:port],handler , options) Compp.start(handler, options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compp-1.0.0 | spec/compp_spec.rb |