63 tests, 93 assertions, 2 failures, 24 errors, 0 pendings, 0 omissions, 0 notifications

This commit is contained in:
yanxd 2014-07-17 17:12:10 +08:00
parent ed00adb3ba
commit 355d452472
6 changed files with 12 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class AttachmentsControllerTest < ActionController::TestCase
role.save role.save
} }
User.current = nil User.current = nil
@request.session[:ctime] = Time.now.to_i
@request.session[:atime] = Time.now.to_i
end end

View File

@ -41,6 +41,8 @@ class CodeReviewControllerTest < ActionController::TestCase
role.permissions << :view_code_review role.permissions << :view_code_review
role.save role.save
} }
@request.session[:ctime] = Time.now.to_i
@request.session[:atime] = Time.now.to_i
end end
context "index" do context "index" do

View File

@ -42,6 +42,8 @@ class CodeReviewSettingsControllerTest < ActionController::TestCase
role.permissions << :view_code_review role.permissions << :view_code_review
role.save role.save
} }
@request.session[:ctime] = Time.now.to_i
@request.session[:atime] = Time.now.to_i
end end

View File

@ -62,6 +62,8 @@ class IssuesControllerTest < ActionController::TestCase
role.permissions << :view_code_review role.permissions << :view_code_review
role.save role.save
} }
@request.session[:ctime] = Time.now.to_i
@request.session[:atime] = Time.now.to_i
end end
def test_show def test_show

View File

@ -26,6 +26,8 @@ class ProjectsControllerTest < ActionController::TestCase
@controller = ProjectsController.new @controller = ProjectsController.new
@request = ActionController::TestRequest.new @request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new @response = ActionController::TestResponse.new
@request.session[:ctime] = Time.now.to_i
@request.session[:atime] = Time.now.to_i
end end
context "#settings" do context "#settings" do

View File

@ -52,6 +52,8 @@ class RepositoriesControllerTest < ActionController::TestCase
role.permissions << :browse_repository role.permissions << :browse_repository
role.save role.save
} }
@request.session[:ctime] = Time.now.to_i
@request.session[:atime] = Time.now.to_i
end end
def test_revision def test_revision