Commit 96ec5e26 authored by jplang's avatar jplang
Browse files

Asserts that spent time is preloaded.

git-svn-id: https://svn.redmine.org/redmine/trunk@14410 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9e82f774
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment