lib/serverspec/matchers/be_mounted.rb in serverspec-1.0.0 vs lib/serverspec/matchers/be_mounted.rb in serverspec-1.1.0

- old
+ new

@@ -1,12 +1,14 @@ 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