spec/spec_helper.rb in net_dav-0.3.3 vs spec/spec_helper.rb in net_dav-0.4.0

- old
+ new

@@ -4,7 +4,16 @@ require 'net/dav' require 'spec' require 'spec/autorun' Spec::Runner.configure do |config| - + +end + +# Profind helper. Returns properties or error +def find_props_or_error(dav, path) + begin + return dav.propfind(path).to_s + rescue Net::HTTPServerException => e + return e.to_s + end end