Added all list and boolean custom data fields to the Time Report. #4077
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2951 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -238,12 +238,12 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_report_custom_field_criteria
|
||||
get :report, :project_id => 1, :criterias => ['project', 'cf_1']
|
||||
get :report, :project_id => 1, :criterias => ['project', 'cf_1', 'cf_7']
|
||||
assert_response :success
|
||||
assert_template 'report'
|
||||
assert_not_nil assigns(:total_hours)
|
||||
assert_not_nil assigns(:criterias)
|
||||
assert_equal 2, assigns(:criterias).size
|
||||
assert_equal 3, assigns(:criterias).size
|
||||
assert_equal "162.90", "%.2f" % assigns(:total_hours)
|
||||
# Custom field column
|
||||
assert_tag :tag => 'th', :content => 'Database'
|
||||
@@ -252,6 +252,8 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
:sibling => { :tag => 'td', :attributes => { :class => 'hours' },
|
||||
:child => { :tag => 'span', :attributes => { :class => 'hours hours-int' },
|
||||
:content => '1' }}
|
||||
# Second custom field column
|
||||
assert_tag :tag => 'th', :content => 'Billable'
|
||||
end
|
||||
|
||||
def test_report_one_criteria_no_result
|
||||
|
||||
Reference in New Issue
Block a user