]> git.openstreetmap.org Git - rails.git/commit
Add tests for routing and to ensure output format
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Apr 2021 15:11:57 +0000 (16:11 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Apr 2021 15:11:57 +0000 (16:11 +0100)
commit6bb18436a31bc192c20f3df5caf15ac5888471b5
tree11f1312cc4b4d486f3233aa5ae00a8d549f726e8
parenta968c1b9237ea05ea1675007ba962240d8d4535a
Add tests for routing and to ensure output format

This avoids the tests passing if the json output is an array of kv pairs,
instead of the desired hash of attributes.
app/controllers/api/user_preferences_controller.rb
test/controllers/api/user_preferences_controller_test.rb