Skip to content

Instantly share code, notes, and snippets.

@brian428
Created September 6, 2012 04:16
Show Gist options
  • Save brian428/3651153 to your computer and use it in GitHub Desktop.
Save brian428/3651153 to your computer and use it in GitHub Desktop.
Spec that tests a view controller method
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