describe(@"LogoutUseCase", ^{
__block LogoutUseCase *subject;
__block Storage *storage;
beforeEach(^{
id<BSBinder, BSInjector> injector = [InjectorProvider specInjector];
storage = fake_for([Storage class]);
[injector bind:[Storage class] toInstance:storage];
subject = [injector getInstance:[LogoutUseCase class]];
});
describe(@"-logout", ^{
beforeEach(^{
[subject logout];
});
it(@"should clear the storage", ^{
storage should have_received(@selector(clearStorageData));
});
});
});
--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.