Sha256: ed4b4a5156127f844bd3a6412bb4c64bf09a2ccf07a4c623f39358eb69e31a55
Contents?: true
Size: 540 Bytes
Versions: 10
Compression:
Stored size: 540 Bytes
Contents
require 'spec_helper' require 'tmpdir' module RevealCK module Commands describe StartWebServer do describe '#run' do it 'works with Rack to start an application' do start_web_server = StartWebServer.new('doc_root', 'port', 'host') rack_server = double expect(::Rack::Server) .to(receive(:new)) .and_return(rack_server) expect(rack_server) .to(receive(:start)) start_web_server.run end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems