Testing a seaside task and component?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Testing a seaside task and component?

abergel
Hi!

I have a rather simple question regarding seaside.
Assuming I have a method MyTask>>go
How can I test it in a unit test?
Executing MyTask new go leads to the error:  'You can only #call: and #answer: from within a callback or a Task.'

Pity the Seaside distribution does not have the Sushi example and some tests.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.