Added tests for mathjax.config.js permissions. Fixed typo in permission regex.
This commit is contained in:
@@ -524,6 +524,8 @@ context "Frontend" do
|
||||
get "/gollum/#{route}/custom#{ext}"
|
||||
assert_equal 403, last_response.status, "get /gollum/#{route}/custom#{ext} -- #{last_response.inspect}"
|
||||
end
|
||||
get "/gollum/#{route}/mathjax.config.js"
|
||||
assert_equal 403, last_response.status, "get /gollum/#{route}/mathjax.config.js -- #{last_response.inspect}"
|
||||
end
|
||||
|
||||
['delete', 'rename', 'edit', 'create'].each do |route|
|
||||
@@ -531,6 +533,8 @@ context "Frontend" do
|
||||
post "/gollum/#{route}/custom#{ext}"
|
||||
assert_equal 403, last_response.status, "post /gollum/#{route}/custom#{ext} -- #{last_response.inspect}"
|
||||
end
|
||||
post "/gollum/#{route}/mathjax.config.js"
|
||||
assert_equal 403, last_response.status, "post /gollum/#{route}/mathjax.config.js -- #{last_response.inspect}"
|
||||
end
|
||||
|
||||
['.css', '.js'].each do |ext|
|
||||
|
||||
Reference in New Issue
Block a user