Thomas, The problem is that I already have lots of tests and it's only the beginning. Imagine running 50 tests at one time:) You will see 50 windows on screen. Not very good 2014-08-06 14:11 GMT+02:00 Thomas Bany <mun.sysdev@gmail.com>:
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 <Benjamin.VanRyseghem.Pharo@gmail.com> :
Maybe you can manually set the Adapter?
Ben
On 06 Aug 2014, at 12:39, Mark Rizun <mrizun@gmail.com> 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" < Benjamin.VanRyseghem.Pharo@gmail.com> напиÑав:
On 06 Aug 2014, at 11:50, Mark Rizun <mrizun@gmail.com> 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