Sha256: 28cf2906a2542210945378bff88587777681a91a9f6835351332381e3f029478

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'buildmaster')

require 'spec'
require 'windows/iis_driver'

module BuildMaster

context 'IIS Driver' do

  setup do
    @system = InMemorySystem.new
    @driver = IisDriver.new(Cotta.new(@system))
  end
  
  specify 'should work on real system - requires IIS installed and not running' do
    @driver = IisDriver.new
    @driver.start
    @driver.status
    @driver.stop
  end
  
  specify 'should initiate start command' do
    @driver.start
    #@system.executed_commands[0].should_equal 'C:\WINDOWS\system32\iisreset.exe /start'
    @system.executed_commands[0].should_equal 'sc start W3SVC'
  end
  
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
BuildMaster-0.9.0 test/buildmaster/windows/tc_iis_driver.rb
BuildMaster-0.9.1 test/buildmaster/windows/tc_iis_driver.rb