Skip to content

Instantly share code, notes, and snippets.

@jm
Created January 25, 2009 19:28
Show Gist options
  • Save jm/52501 to your computer and use it in GitHub Desktop.
Save jm/52501 to your computer and use it in GitHub Desktop.
// Rather than:
STAssertEquals(32, [centigradeFreezingPoint intValue],
@"Centigrade freezing point should be 32, but was %d instead!",
[centigradeFreezingPoint intValue]);
// It's now...
[[centigradeFreezingPoint intValue] shouldEqual:32];
// or even...
[[[centigradeFreezingPoint intValue] should] equal:32];
// i'm going to be forwarding methods later so you can do things like rspec's dynamic matchers (hopefully)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment