Sha256: f04e2aab4c9fdffc0a193bbc7c579cf4c4c887b65e6dccbd4ec6f72708899b25
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 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)) 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 end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
grockit-thin-0.8.2 | spec/command_spec.rb |
macournoyer-thin-1.0.1 | spec/command_spec.rb |
thin-1.0.0 | spec/command_spec.rb |