Skip to content

Code in charge of bootstrapping contexts is not testable #24

@mikeseghers

Description

@mikeseghers

In our examples and documentation we suggest bootstrapping context in the form of:

[someObject ocsBootstrapAndBindObjectContextWithConfiguratorFromClass:[SomeContextConfiguration class]];
[someObject ocsInject];

While this code avoids a lot of boilerplate, it makes the class responsible for bootstrapping less testable. We need some indirection to make the code independent of the NSObject categories.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions