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.0.4 spec/commands/server_spec.rb
softcover-1.0.3 spec/commands/server_spec.rb
softcover-1.0.2 spec/commands/server_spec.rb
softcover-1.0.1 spec/commands/server_spec.rb
softcover-1.0.0 spec/commands/server_spec.rb
softcover-1.0.beta17 spec/commands/server_spec.rb
softcover-1.0.beta16 spec/commands/server_spec.rb
softcover-1.0.beta15 spec/commands/server_spec.rb
softcover-1.0.beta14 spec/commands/server_spec.rb
softcover-1.0.beta13 spec/commands/server_spec.rb
softcover-1.0.beta12 spec/commands/server_spec.rb
softcover-1.0.beta11 spec/commands/server_spec.rb
softcover-1.0.beta10 spec/commands/server_spec.rb
softcover-1.0.beta9 spec/commands/server_spec.rb
softcover-1.0.beta8 spec/commands/server_spec.rb
softcover-1.0.beta7 spec/commands/server_spec.rb
softcover-1.0.beta6 spec/commands/server_spec.rb
softcover-1.0.beta5 spec/commands/server_spec.rb
softcover-1.0.beta4 spec/commands/server_spec.rb
softcover-1.0.beta3 spec/commands/server_spec.rb