lib/serverspec/matchers/be_mounted.rb in serverspec-0.5.8 vs lib/serverspec/matchers/be_mounted.rb in serverspec-0.6.0

- old
+ new

@@ -1,11 +1,7 @@ RSpec::Matchers.define :be_mounted do match do |path| - if path.respond_to?(:mounted?) - path.mounted?(@attr, @only_with) - else - backend.check_mounted(path, @attr, @only_with) - end + path.mounted?(@attr, @only_with) end chain :with do |attr| @attr = attr @only_with = false end