aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/link_to_helper_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-09-04 16:23:03 +0100
committerRobin Houston <robin.houston@gmail.com>2012-09-04 16:23:03 +0100
commit9839e0e23ba78b405779b1a9c9d1e41f02991ebd (patch)
treed07209a4ad2003111c03948d537127d40dda9799 /spec/helpers/link_to_helper_spec.rb
parent62a20d6696275a6f83ca4cf835c487873ca89c99 (diff)
API errors should be JSON
The API was returning Rails (HTML) errors for certain error conditions, which is inconvenient because it makes it difficult for the client to extract the error message. This patch changes add_correspondence to return JSON errors (still with suitable HTTP status codes) for two common exceptional conditions, and adds tests.
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
0 files changed, 0 insertions, 0 deletions