Sha256: 14fc125a4b03588b3917be4da49cf81842be2c66e3e4b9c0a9a2ef4bf8a6ba08

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe Command do
  before do
    Command.script = 'thin'
    @command = Command.new(:start, :port => 3000, :daemonize => true, :log => 'hi.log')
  end
  
  it 'should shellify command' do
    out = @command.shellify
    out.should include('--port=3000', '--daemonize', '--log="hi.log"', 'thin start --')
    out.should_not include('--pid')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thin-0.8.1 spec/command_spec.rb
thin-0.8.0 spec/command_spec.rb
thin-0.7.1-x86-mswin32-60 spec/command_spec.rb
thin-0.7.1 spec/command_spec.rb
thin-0.8.2 spec/command_spec.rb