Login  Register

Re: Question on Spec

Posted by Mark Rizun on Aug 06, 2014; 9:04am
URL: https://forum.world.st/Question-on-Spec-tp4771958p4771960.html

initializeWidgets
self
instantiateModels: #(#sourcePanel #SourcePanel #resultPanel #ResultPanel #matchPanel #MatchPanel #transformPanel #TransformPanel #acceptButton #ButtonModel).


2014-08-06 10:58 GMT+02:00 Benjamin <[hidden email]>:
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

On 06 Aug 2014, at 10:56, Mark Rizun <[hidden email]> wrote:

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.