1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-11 13:15:20 +00:00

Asserts that spent time is preloaded.

git-svn-id: http://svn.redmine.org/redmine/trunk@14410 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-07-05 12:56:13 +00:00
parent 5a3ee73a2e
commit 9749a51443

View File

@ -851,11 +851,13 @@ class IssuesControllerTest < ActionController::TestCase
end
def test_index_with_spent_hours_column
Issue.expects(:load_visible_spent_hours).once
get :index, :set_filter => 1, :c => %w(subject spent_hours)
assert_select 'table.issues tr#issue-3 td.spent_hours', :text => '1.00'
end
def test_index_with_total_spent_hours_column
Issue.expects(:load_visible_total_spent_hours).once
get :index, :set_filter => 1, :c => %w(subject total_spent_hours)
assert_select 'table.issues tr#issue-3 td.total_spent_hours', :text => '1.00'
end