Sha256: 11aa9c0ef6df9e2fbd09bb85c65900331a34392dcc2f6046eecb7dba4dc1d747

Contents?: true

Size: 412 Bytes

Versions: 99

Compression:

Stored size: 412 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
    subject.run port

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

Version data entries

99 entries across 99 versions & 2 rubygems

Version Path
softcover-1.1.17 spec/commands/server_spec.rb
softcover-1.1.16 spec/commands/server_spec.rb
softcover-1.1.15 spec/commands/server_spec.rb
softcover-1.1.14 spec/commands/server_spec.rb
softcover-1.1.13 spec/commands/server_spec.rb
softcover-1.1.12 spec/commands/server_spec.rb
softcover-1.1.11 spec/commands/server_spec.rb
softcover-1.1.10 spec/commands/server_spec.rb
softcover-1.1.9 spec/commands/server_spec.rb
softcover-1.1.8 spec/commands/server_spec.rb
softcover-1.1.7 spec/commands/server_spec.rb
softcover-1.1.6 spec/commands/server_spec.rb
softcover-1.1.4 spec/commands/server_spec.rb
softcover-1.1.3 spec/commands/server_spec.rb
softcover-1.1.2 spec/commands/server_spec.rb
softcover-1.1.1 spec/commands/server_spec.rb
softcover-1.1.0 spec/commands/server_spec.rb
softcover-1.1.beta2 spec/commands/server_spec.rb
softcover-1.0.5 spec/commands/server_spec.rb
softcover-1.1.beta1 spec/commands/server_spec.rb