Sha256: 9ae50110d7018980939ef4572e615259e706f903ef335cb1f4fd7c885925030d

Contents?: true

Size: 550 Bytes

Versions: 11

Compression:

Stored size: 550 Bytes

Contents

require 'spec_helper'

describe Softcover::Commands::Server do
  before(:all) { generate_book }
  after(:all)  { remove_book }

  before { chdir_to_book }

  it '#listen_for_changes' do
    expect { subject.listen_for_changes }.to_not raise_error(Exception)
  end

  it '#run' do
    Softcover::App.should_receive :run!

    port     = 5000
    bind     = "localhost"
    pdf      = false
    overfull = false

    subject.run port, bind, pdf, overfull

    expect(Softcover::App.port).to eq port
    expect(Softcover::App.bind).to eq bind
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
softcover-1.10.4 spec/commands/server_spec.rb
softcover-1.10.3 spec/commands/server_spec.rb
softcover-1.10.2 spec/commands/server_spec.rb
softcover-1.10.1 spec/commands/server_spec.rb
softcover-1.10.0 spec/commands/server_spec.rb
softcover-1.9.1 spec/commands/server_spec.rb
softcover-1.9.0 spec/commands/server_spec.rb
softcover-1.8.3 spec/commands/server_spec.rb
softcover-1.8.2 spec/commands/server_spec.rb
softcover-1.8.1 spec/commands/server_spec.rb
softcover-1.8.0 spec/commands/server_spec.rb