Skip to content

Instantly share code, notes, and snippets.

@chris-dannen
Created June 7, 2013 14:08
Show Gist options
  • Save chris-dannen/5729512 to your computer and use it in GitHub Desktop.
Save chris-dannen/5729512 to your computer and use it in GitHub Desktop.
beforeEach(^{ messageStore = [[MessageStore alloc] init]; }); // uninitialized
afterEach(^{ messageStore = nil; });
it(@"says whether you can archive messages in the current folder", ^{
[[theBlock(^{ [messageStore canArchiveThreads]; }) should] raise];
messageStore.mode = MessageStoreInbox;
[[theValue(messageStore.canArchiveThreads) should] equal:theValue(YES)];
messageStore.mode = MessageStoreSent;
[[theValue(messageStore.canArchiveThreads) should] equal:theValue(NO)];
messageStore.mode = MessageStoreArchive;
[[theValue(messageStore.canArchiveThreads) should] equal:theValue(NO)];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment