Sha256: ce370bf9390cc998dbaba014298502767977fbb64e2e8155f5588bdf83388f57

Contents?: true

Size: 765 Bytes

Versions: 32

Compression:

Stored size: 765 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',
                           :require => %w(rubygems thin), :no_epoll => true)
  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
  
  it 'should shellify Array argument to multiple parameters' do
    out = @command.shellify
    out.should include('--require="rubygems"', '--require="thin"')
  end

  it 'should convert _ to - in option name' do
    out = @command.shellify
    out.should include('--no-epoll')
  end
end

Version data entries

32 entries across 32 versions & 5 rubygems

Version Path
macournoyer-thin-1.1.0 spec/command_spec.rb
michaelyta-thin-1.2.2 spec/command_spec.rb
thin-1.2.11 spec/command_spec.rb
thin-1.2.11-x86-mswin32 spec/command_spec.rb
thin-1.2.11-x86-mingw32 spec/command_spec.rb
thin-1.2.10 spec/command_spec.rb
thin-1.2.10-x86-mswin32 spec/command_spec.rb
thin-1.2.10-x86-mingw32 spec/command_spec.rb
thin-1.2.9 spec/command_spec.rb
thin-1.2.9-x86-mswin32 spec/command_spec.rb
thin-1.2.9-x86-mingw32 spec/command_spec.rb
thin-1.2.8 spec/command_spec.rb
thin-1.2.8-x86-mswin32 spec/command_spec.rb
thin-1.2.8-x86-mingw32 spec/command_spec.rb
steamcannon-thin-1.2.8 spec/command_spec.rb
thin-1.2.7 spec/command_spec.rb
thin-1.2.7-x86-mswin32 spec/command_spec.rb
thin-1.2.7-x86-mingw32 spec/command_spec.rb
thin-1.2.6 spec/command_spec.rb
thin-1.2.6-x86-mswin32 spec/command_spec.rb