You have to define method BEFORE you can use it:

# define method first
def method1
end

# then you can use it
method1

Zeljko

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hue Mach Dieu
Sent: Tuesday, August 09, 2005 2:28 PM
To: [email protected]
Subject: [Wtr-general] Define methods within test case?


Dear All,

I define the method within test case as like this

...
# call method1 
method1
 ...
# call method2
 method2

Def method1
        ....
End

Def method2
        ....
End

But I got the error about the method1, method2 undefined

How's solve this problem?

Thank you for help

Regards,

Hue


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to