|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Testing controller modules
Hello,
I have a controller that defines a module and I'm wondering how I can write a functional test for methods w/in the module. Here's the basic structure of the controller module blog_controller: Code:
require 'hmac/hmac-sha2'
module BlogController
PAGEXI_HMAC_SHA256_KEY = "sdfqaasdfwfa3rq32aq"
PAGEXI_HMAC_SHA256_AUTHOR_KEY = "sooloo"
def combined
render :partial => "/blog/page_object_combined"
end
#etc...
end
Any ideas? Thanks! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Testing controller modules |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|