Skip to content

Instantly share code, notes, and snippets.

@Abizern
Created May 1, 2014 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Abizern/af63184d5cbcec556a2e to your computer and use it in GitHub Desktop.
Save Abizern/af63184d5cbcec556a2e to your computer and use it in GitHub Desktop.
A simple test file that can be added to a project to smoke test the Specta and Expecta installation
//
// SmokeSpec.m
//
#define EXP_SHORTHAND
#import <Specta/Specta.h>
#import <Expecta/Expecta.h>
SpecBegin(SmokeTest)
describe(@"Smoke Test", ^{
__block NSString *_str;
before(^{
_str = @"Hello";
});
it(@"should fail", ^{
expect(_str).to.equal(@"Goodbye");
});
it(@"should pass", ^{
_str = @"Goodbye";
expect(_str).to.equal(@"Goodbye");
});
});
SpecEnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment