From 9749a51443b9b633435852b906b42be981e9f431 2015-07-05 12:56:13 From: Jean-Philippe Lang Date: 2015-07-05 12:56:13 Subject: [PATCH] Asserts that spent time is preloaded. git-svn-id: http://svn.redmine.org/redmine/trunk@14410 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 6d106e8..f642d58 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -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