projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add test for no_note_comment ACLs
[rails.git]
/
test
/
controllers
/
api
/
notes_controller_test.rb
diff --git
a/test/controllers/api/notes_controller_test.rb
b/test/controllers/api/notes_controller_test.rb
index a03b84ae8e2130676e101b2d0414943dfa5381bd..874ac3ccda1a65d474e9a1f6cd12312177a43967 100644
(file)
--- a/
test/controllers/api/notes_controller_test.rb
+++ b/
test/controllers/api/notes_controller_test.rb
@@
-786,6
+786,10
@@
module Api
end
def test_index_bad_params
+ get api_notes_path
+ assert_response :bad_request
+ assert_equal "The parameter bbox is required", @response.body
+
get api_notes_path(:bbox => "-2.5,-2.5,2.5")
assert_response :bad_request