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.38.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.37.2 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.37.1 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.37.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.36.1 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.36.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.35.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.34.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.33.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.32.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.31.1 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.31.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.30.1 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.30.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.29.2 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.29.1 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.29.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.28.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.27.0 lib/serverspec/matcher/have_virtual_dir.rb
serverspec-2.26.0 lib/serverspec/matcher/have_virtual_dir.rb