Sha256: ab59ac9dcb5c5e68ff8b1a318d92483a0d564ee526bb8ccd23555b161ea7c74a

Contents?: true

Size: 485 Bytes

Versions: 62

Compression:

Stored size: 485 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"

    subject.run port, bind

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

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
softcover-1.7.5 spec/commands/server_spec.rb
softcover-1.7.4 spec/commands/server_spec.rb
softcover-1.7.3 spec/commands/server_spec.rb
softcover-1.7.2 spec/commands/server_spec.rb
softcover-1.7.1 spec/commands/server_spec.rb
softcover-1.7.0 spec/commands/server_spec.rb
softcover-1.6.5 spec/commands/server_spec.rb
softcover-1.6.4 spec/commands/server_spec.rb
softcover-1.6.3 spec/commands/server_spec.rb
softcover-1.6.2 spec/commands/server_spec.rb
softcover-1.6.1 spec/commands/server_spec.rb
softcover-1.6.0 spec/commands/server_spec.rb
softcover-1.5.11 spec/commands/server_spec.rb
softcover-1.5.10 spec/commands/server_spec.rb
softcover-1.5.9 spec/commands/server_spec.rb
softcover-1.5.8 spec/commands/server_spec.rb
softcover-1.5.7 spec/commands/server_spec.rb
softcover-1.5.6 spec/commands/server_spec.rb
softcover-1.5.5 spec/commands/server_spec.rb
softcover-1.5.4 spec/commands/server_spec.rb