serverspec/serverspec

View on GitHub
lib/serverspec/matcher/be_mounted.rb

Summary

Maintainability
A
0 mins
Test Coverage
RSpec::Matchers.define :be_mounted do
  match do |path|
    path.mounted?(@attr, @only_with)
  end

  chain :with do |attr|
    @attr      = attr
    @only_with = false
  end

  chain :only_with do |attr|
    @attr      = attr
    @only_with = true
  end
end