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

Version Path
reveal-ck-4.0.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.9.2 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.9.1 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.9.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.8.1 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.8.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.7.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.6.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.5.1 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.5.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb