Revision aa806e82
Added by Aditi Puntambekar almost 6 years ago
test/controllers/api/v2/settings_controller_test.rb | ||
---|---|---|
put :update, params: { :id => setting.id, :setting => { :value => "" } }
|
||
assert_equal JSON.parse(@response.body)['value'], "", "Can't update login_text setting with empty value"
|
||
end
|
||
|
||
test "settings list should show full name column" do
|
||
get :index
|
||
assert_response :success
|
||
response = ActiveSupport::JSON.decode(@response.body)
|
||
assert response["results"][0].key?("full_name")
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #24025 - Pass full_name attribute for settings in API