Login  Register

Re: Question on Spec

Posted by Thomas Bany on Aug 06, 2014; 12:11pm
URL: https://forum.world.st/Question-on-Spec-tp4771958p4771994.html

Going through the execution of 'openWithSpec', it looks like the method you are looking for is 'buildWithSpec'. It definitely instantiate the adapters as well as the morphs, with the root of the morph tree being nil.

I can't tell you if everything will work as intended though, but I don't see why not. Benjamin developed Spec and might be able to answer that.

Finaly, I don't quite see what is wrong with opening a window in a test, as long as you send 'close' to your model at the end ?

Thomas.


2014-08-06 14:01 GMT+02:00 Benjamin <[hidden email]>:
Maybe you can manually set the Adapter?

Ben

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

Maybe it can, but it's more convenient for me to subclass it
So, how do I initialize it for tests without opening it with spec?

6 серп. 2014 12:00, користувач "Benjamin" <[hidden email]> написав:
On 06 Aug 2014, at 11:50, Mark Rizun <[hidden email]> wrote:

> No they don't:) I just replaced a menu of TextModel with my own, and added some ast support.

Can’t the menu be changed dynamically in TextModel?

Ben