Project

General

Profile

« Previous | Next » 

Revision cf672214

Added by Thomas McKay almost 10 years ago

fixes #6003 - don't render user default loc/org object directly

(cherry picked from commit ecac9440024dd86cb1ef0864ff024763a2225cfa)

View differences:

test/functional/api/v2/users_controller_test.rb
get :show, { :id => users(:one).id }
show_response = ActiveSupport::JSON.decode(@response.body)
assert_equal taxonomies(:location1).id, show_response['default_location']['location']['id']
assert_equal taxonomies(:location1).id, show_response['default_location']['id']
assert_equal nil, show_response['default_organization']
end

Also available in: Unified diff