Project

General

Profile

« Previous | Next » 

Revision df4c1afc

Added by Dominic Cleal over 10 years ago

fixes #3736 - users API uses login name as an identifying attribute

View differences:

test/functional/api/v1/users_controller_test.rb
assert_response :success
end
test "should show individual record" do
get :show, { :id => users(:one).to_param }
test "should show individual record by ID" do
get :show, { :id => users(:one).id }
assert_response :success
show_response = ActiveSupport::JSON.decode(@response.body)
assert !show_response.empty?
end
test "should show individual record by login name" do
get :show, { :id => users(:one).login }
assert_response :success
show_response = ActiveSupport::JSON.decode(@response.body)
assert !show_response.empty?

Also available in: Unified diff