redmine_dmsf/test/integration/dmsf_webdav_post_test.rb
2012-06-18 23:16:25 +01:00

28 lines
608 B
Ruby

require File.expand_path('../../test_helper', __FILE__)
class DmsfWebdavPostTest < RedmineDmsf::Test::IntegrationTest
fixtures :users, :enabled_modules
def setup
@headers = credentials('admin')
super
end
def teardown
@headers = nil
end
#Test that any post request is authenticated
def test_post_request_authenticated
post "/dmsf/webdav/"
assert_response 401 #401 Unauthorized
end
#Test post is not implimented
def test_post_not_implemented
post "/dmsf/webdav/", nil, @headers
assert_response 501 #501 Not Implemented
end
end