Re: Question on Spec
Posted by
Benjamin Van Ryseghem (Pharo) on
Aug 06, 2014; 8:58am
URL: https://forum.world.st/Question-on-Spec-tp4771958p4771959.html
I will say it depends how you initialise your objects ;)
The good way to do it is in the method `initializeWidgets`
Could you post it so I can tell you a bit more?
Ben
Hi,
I'm writing tests for RewriteTool which I build with spec. I have a
TextModel in this tool.
When I do: /RewriteTool new openWithSpec/, /TextModel sourceTextArea/ is
initialized,
however in tests I don't want to open a tool, just want to initialize it. So
I wrote /RewriteTool new/.
Everything is initialized, but/ TextModel sourceTextArea/ is /nil/. And I
don't know why.
Any thoughts?
Best,
Mark
--
View this message in context: http://forum.world.st/Question-on-Spec-tp4771958.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.