Created
March 12, 2013 23:20
-
-
Save jpsim/5148005 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
SPEC_BEGIN(TemperatureConverterTests) | |
describe(@"basic converter", ^{ | |
it(@"converts farenheit To celsius", ^{ | |
ViewController *controller = [ViewController alloc]init]; | |
[[theValue([controller convertCelisusToFarenheit:-40]) should]equal:theValue(-40)]; | |
}); | |
it(@"converts celsius to farenheight", ^{ | |
ViewController *controller = [ViewController alloc]init]; | |
[[theValue([controller convertfarenheitToCelsius:-40]) should]equal:theValue(-40)]; | |
}); | |
}); | |
SPEC_END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment