From 355d4524725773c16011bb6cb59f3da8c190f85d Mon Sep 17 00:00:00 2001 From: yanxd Date: Thu, 17 Jul 2014 17:12:10 +0800 Subject: [PATCH] 63 tests, 93 assertions, 2 failures, 24 errors, 0 pendings, 0 omissions, 0 notifications --- .../test/functional/attachments_controller_test.rb | 2 ++ .../test/functional/code_review_controller_test.rb | 2 ++ .../test/functional/code_review_settings_controller_test.rb | 2 ++ .../test/functional/issues_controller_test.rb | 2 ++ .../test/functional/projects_controller_test.rb | 2 ++ .../test/functional/repositories_controller_test.rb | 2 ++ 6 files changed, 12 insertions(+) diff --git a/plugins/redmine_code_review/test/functional/attachments_controller_test.rb b/plugins/redmine_code_review/test/functional/attachments_controller_test.rb index d0e5079f9..3837586a3 100644 --- a/plugins/redmine_code_review/test/functional/attachments_controller_test.rb +++ b/plugins/redmine_code_review/test/functional/attachments_controller_test.rb @@ -45,6 +45,8 @@ class AttachmentsControllerTest < ActionController::TestCase role.save } User.current = nil + @request.session[:ctime] = Time.now.to_i + @request.session[:atime] = Time.now.to_i end diff --git a/plugins/redmine_code_review/test/functional/code_review_controller_test.rb b/plugins/redmine_code_review/test/functional/code_review_controller_test.rb index d2dba9ab6..26982c9b4 100644 --- a/plugins/redmine_code_review/test/functional/code_review_controller_test.rb +++ b/plugins/redmine_code_review/test/functional/code_review_controller_test.rb @@ -41,6 +41,8 @@ class CodeReviewControllerTest < ActionController::TestCase role.permissions << :view_code_review role.save } + @request.session[:ctime] = Time.now.to_i + @request.session[:atime] = Time.now.to_i end context "index" do diff --git a/plugins/redmine_code_review/test/functional/code_review_settings_controller_test.rb b/plugins/redmine_code_review/test/functional/code_review_settings_controller_test.rb index 3def022bf..660f909d9 100644 --- a/plugins/redmine_code_review/test/functional/code_review_settings_controller_test.rb +++ b/plugins/redmine_code_review/test/functional/code_review_settings_controller_test.rb @@ -42,6 +42,8 @@ class CodeReviewSettingsControllerTest < ActionController::TestCase role.permissions << :view_code_review role.save } + @request.session[:ctime] = Time.now.to_i + @request.session[:atime] = Time.now.to_i end diff --git a/plugins/redmine_code_review/test/functional/issues_controller_test.rb b/plugins/redmine_code_review/test/functional/issues_controller_test.rb index 27cacda05..0e45d25a9 100644 --- a/plugins/redmine_code_review/test/functional/issues_controller_test.rb +++ b/plugins/redmine_code_review/test/functional/issues_controller_test.rb @@ -62,6 +62,8 @@ class IssuesControllerTest < ActionController::TestCase role.permissions << :view_code_review role.save } + @request.session[:ctime] = Time.now.to_i + @request.session[:atime] = Time.now.to_i end def test_show diff --git a/plugins/redmine_code_review/test/functional/projects_controller_test.rb b/plugins/redmine_code_review/test/functional/projects_controller_test.rb index 99b17011d..b1a512a0c 100644 --- a/plugins/redmine_code_review/test/functional/projects_controller_test.rb +++ b/plugins/redmine_code_review/test/functional/projects_controller_test.rb @@ -26,6 +26,8 @@ class ProjectsControllerTest < ActionController::TestCase @controller = ProjectsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new + @request.session[:ctime] = Time.now.to_i + @request.session[:atime] = Time.now.to_i end context "#settings" do diff --git a/plugins/redmine_code_review/test/functional/repositories_controller_test.rb b/plugins/redmine_code_review/test/functional/repositories_controller_test.rb index ed95dc2cb..6efca1aec 100644 --- a/plugins/redmine_code_review/test/functional/repositories_controller_test.rb +++ b/plugins/redmine_code_review/test/functional/repositories_controller_test.rb @@ -52,6 +52,8 @@ class RepositoriesControllerTest < ActionController::TestCase role.permissions << :browse_repository role.save } + @request.session[:ctime] = Time.now.to_i + @request.session[:atime] = Time.now.to_i end def test_revision