Refactoring

Move the truncate() method into ApplicationHelper.
Move another method around, for no particularly
good reason. Controllers really shouldn't have
public methods that don't correspond to actions.
This commit is contained in:
Jacques Distler 2009-12-14 02:01:50 -06:00
parent dc3d202665
commit 2c5e5a0015
5 changed files with 22 additions and 25 deletions

View file

@ -19,6 +19,7 @@ class WikiControllerTest < ActionController::TestCase
def setup
@controller = WikiController.new
@controller.extend ApplicationHelper
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
class << @request.session