Adds a "visible" option on User and Project custom fields (#1738).
If set to false, the custom field won't be display on user profile/project overview. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -36,6 +36,15 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest
|
||||
get '/projects/1.xml'
|
||||
assert_response :success
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
assert_tag 'custom_field', :attributes => {:name => 'Development status'}, :content => 'Stable'
|
||||
end
|
||||
|
||||
def test_show_should_not_display_hidden_custom_fields
|
||||
ProjectCustomField.find_by_name('Development status').update_attribute :visible, false
|
||||
get '/projects/1.xml'
|
||||
assert_response :success
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
assert_no_tag 'custom_field', :attributes => {:name => 'Development status'}
|
||||
end
|
||||
|
||||
def test_create
|
||||
|
||||
Reference in New Issue
Block a user