Sha256: 5b4577db1625a5f6aad853aaa354efea20112f323418b43c0e5fa53121add444

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

RSpec::Matchers.define :have_site_application do |app|
  match do |subject|
    if subject.class.name == 'Serverspec::Type::IisWebsite'
      subject.has_site_application?(app, @pool, @physicalPath)
    else
      className = subject.class.name
      raise "not supported class #{className}"
    end
  end

  chain :with_pool do |pool|
    @pool = pool
  end
  
  chain :with_physicalPath do |physicalPath|
    @physicalPath = physicalPath
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-1.13.0 lib/serverspec/matchers/have_site_application.rb