Sha256: e20da8a6aba2844fc1924317a0655b162f624263205297b866ab362232ef68b2

Contents?: true

Size: 340 Bytes

Versions: 92

Compression:

Stored size: 340 Bytes

Contents

RSpec::Matchers.define :have_virtual_dir do |vdir|
  match do |subject|
    if subject.class.name == 'Serverspec::Type::IisWebsite'
      subject.has_virtual_dir?(vdir, @path)
    else
      className = subject.class.name
      raise "not supported class #{className}"
    end
  end

  chain :with_path do |path|
    @path = path
  end
end

Version data entries

92 entries across 92 versions & 4 rubygems

Version Path
serverspec-2.1.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.0.1 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.0.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.0.0.beta21 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-1.16.0 lib/serverspec/matchers/have_virtual_dir.rb
serverspec-1.15.0 lib/serverspec/matchers/have_virtual_dir.rb
serverspec-2.0.0.beta20 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.0.0.beta19 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.0.0.beta18 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.0.0.beta17 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-1.14.0 lib/serverspec/matchers/have_virtual_dir.rb
serverspec-1.13.0 lib/serverspec/matchers/have_virtual_dir.rb