Files
calligraphy/spec/support/request_helpers.rb
Brandon Robins 944668ffcb WIP
2018-05-16 02:40:15 -05:00

22 lines
486 B
Ruby

# frozen_string_literal: true
module ActionDispatch
module Integration
module RequestHelpers
request_methods = %w[
copy move mkcol options propfind proppatch lock unlock acl
]
request_methods.each do |method|
define_method method do |path, **args|
process method.to_sym, path, **args
end
end
end
end
end
def skip_authentication
allow(Calligraphy).to receive(:enable_digest_authentication).and_return(false)
end