initConfig support

Jun 18, 2013 at 10:01 PM
Edited Jun 18, 2013 at 10:45 PM
How can I support configs in my classes that I'm creating specs for when they have a custom constructor? The call to initConfig throws an error because that method doesn't exist. I don't know how I would intercept (spy) this call since it's in the constructor.

Any ideas?
Coordinator
Jun 19, 2013 at 9:08 AM
Edited Jun 19, 2013 at 9:41 AM
You're right, there should be a spy helper for that scenario. Would you mind writing a code sample for me to examine?

Edit: Created an issue for it:
https://extspec.codeplex.com/workitem/32