From 7ac90722707d460934cba31452c138b614cfa400 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 21 Dec 2014 12:50:43 +0000 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 --- test/functional/custom_fields_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb index ab051a63c..0ef0acd87 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