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:
parent
dc3d202665
commit
2c5e5a0015
5 changed files with 22 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue