Add RSpec methods for WebDAV actions for request specs

This commit is contained in:
Brandon Robins
2017-12-31 16:57:11 -06:00
parent a7c9008d46
commit 2b264bdc19
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
module ActionDispatch
module Integration
module RequestHelpers
%w[copy move mkcol propfind proppatch lock unlock].each do |method|
define_method method do |path, **args|
process method.to_sym, path, **args
end
end
end
end
end