Login  Register

Question on Spec

Posted by Mark Rizun on Aug 06, 2014; 8:56am
URL: https://forum.world.st/Question-on-Spec-tp4771958.html

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