Displaying 1 result from an estimated 1 matches for "contribute_controller".
2006 Apr 25
7
Quick functional test question
...g the method. In the controller
I''ve got::
class ContributeController < ApplicationController
...
private
def parse_amazon_date(date)
...
end
end
and in my functional test I''ve got:
require File.dirname(__FILE__) + ''/../test_helper''
require ''contribute_controller''
....
def test_amazon_date_parse
assert_equal Time.gm(2000, "oct", 25), parse_amazon_date("25
October, 2000")
#other tests
end
end
All I keep getting when i try to run the test is:
NoMethodError: undefined method `parse_amazon_date'' for
#<Con...