From 7ac90722707d460934cba31452c138b614cfa400 2014-12-21 12:50:43 From: Jean-Philippe Lang Date: 2014-12-21 12:50:43 Subject: [PATCH] Subclasses may not be loaded when running the test. git-svn-id: http://svn.redmine.org/redmine/trunk@13782 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb index ab051a6..0ef0acd 100644 --- a/test/functional/custom_fields_controller_test.rb +++ b/test/functional/custom_fields_controller_test.rb @@ -45,7 +45,7 @@ class CustomFieldsControllerTest < ActionController::TestCase get :new assert_response :success assert_template 'select_type' - assert_select 'input[name=type]', CustomField.subclasses.size + assert_select 'input[name=type]', CustomFieldsHelper::CUSTOM_FIELDS_TABS.size assert_select 'input[name=type][checked=checked]', 1 end