Sha256: c7a60c7c4cb022fae886ab2d2d43a7427d4347096dd33005ae7a5cc11ba3d39f

Contents?: true

Size: 532 Bytes

Versions: 12

Compression:

Stored size: 532 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')
          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

12 entries across 12 versions & 1 rubygems

Version Path
reveal-ck-3.4.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.3.1 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.3.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.2.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.1.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.0.1 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-3.0.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-0.6.2 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-0.6.1 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-0.6.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-0.5.1 spec/lib/reveal-ck/commands/start_web_server_spec.rb
reveal-ck-0.5.0 spec/lib/reveal-ck/commands/start_web_server_spec.rb