Created
September 6, 2012 04:16
-
-
Save brian428/3651153 to your computer and use it in GitHub Desktop.
Spec that tests a view controller method
This file contains hidden or 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
it "allows panel title to be changed", -> | |
# We can test a ViewController method after the view is rendered and associated view controller configured. | |
expect( viewController.getPanel2().title ).toEqual( "Panel 2" ) | |
viewController.updatePanelTitle( "My New Title" ) | |
expect( viewController.getPanel2().title ).toEqual( "My New Title" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment