Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

testing controller modules

Status
Not open for further replies.

clemcrock

Programmer
Dec 17, 2006
63
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top