diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-07-05 12:56:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-07-05 12:56:13 +0000 |
commit | 9749a51443b9b633435852b906b42be981e9f431 (patch) | |
tree | 29cb3e0e2f440b09c8240f352effec04f12cc567 /test/functional | |
parent | 5a3ee73a2e21a7adb31d4e9eb4da6ed4ec8b74dd (diff) | |
download | redmine-9749a51443b9b633435852b906b42be981e9f431.tar.gz redmine-9749a51443b9b633435852b906b42be981e9f431.zip |
Asserts that spent time is preloaded.
git-svn-id: http://svn.redmine.org/redmine/trunk@14410 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issues_controller_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |