Files
calligraphy/spec/support/request_helpers.rb
2018-03-27 23:52:28 -05:00

22 lines
482 B
Ruby

# frozen_string_literal: true
module ActionDispatch
module Integration
module RequestHelpers
request_methods = %w[
copy move mkcol options propfind proppatch lock unlock
]
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