63 tests, 93 assertions, 2 failures, 24 errors, 0 pendings, 0 omissions, 0 notifications
This commit is contained in:
parent
ed00adb3ba
commit
355d452472
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue