From 6ce8c55a5cf9ad043291ee5ec639e8a9e8a35c24 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 31 Aug 2015 03:38:55 +0000 Subject: [PATCH] Merged r14410 from trunk to 3.1-stable (#11253, #20456) Asserts that spent time is preloaded. git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14537 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 6d106e88b..f642d582d 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 -- 2.39.5