Created
June 7, 2013 14:08
-
-
Save chris-dannen/5729512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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