diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-12 13:09:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-12 13:09:06 +0000 |
commit | e18d0e268de5a3eee897eac3072c3d3dc37405d1 (patch) | |
tree | b433b889bd31ed31aec02bae2053a8d87db17edf /test | |
parent | a9e81b6b847078d0eac673a4bbaebb5274231231 (diff) | |
download | redmine-e18d0e268de5a3eee897eac3072c3d3dc37405d1.tar.gz redmine-e18d0e268de5a3eee897eac3072c3d3dc37405d1.zip |
Makes issue custom fields available as timelog columns (#1766).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11174 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index cb81a41ad..ae0561bfa 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -528,6 +528,16 @@ class TimelogControllerTest < ActionController::TestCase assert_equal [entry], assigns(:entries) end + def test_index_with_issue_custom_field_column + issue = Issue.generate!(:project_id => 1, :tracker_id => 1, :custom_field_values => {2 => 'filter_on_issue_custom_field'}) + entry = TimeEntry.generate!(:issue => issue, :hours => 2.5) + + get :index, :c => %w(project spent_on issue comments hours issue.cf_2) + assert_response :success + assert_include :'issue.cf_2', assigns(:query).column_names + assert_select 'td.issue_cf_2', :text => 'filter_on_issue_custom_field' + end + def test_index_atom_feed get :index, :project_id => 1, :format => 'atom' assert_response :success |