Makes spent time column available on the issue list (#971).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8073 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-12-04 16:43:32 +00:00
parent bddd19c1e6
commit 6d498a3c46
6 changed files with 70 additions and 6 deletions
+7
View File
@@ -423,6 +423,13 @@ class QueryTest < ActiveSupport::TestCase
assert q.has_column?(c)
end
def test_query_should_preload_spent_hours
q = Query.new(:name => '_', :column_names => [:subject, :spent_hours])
assert q.has_column?(:spent_hours)
issues = q.issues
assert_not_nil issues.first.instance_variable_get("@spent_hours")
end
def test_groupable_columns_should_include_custom_fields
q = Query.new
assert q.groupable_columns.detect {|c| c.is_a? QueryCustomFieldColumn}