Skip to content

Instantly share code, notes, and snippets.

@brian428
Created September 6, 2012 04:15
Show Gist options
  • Save brian428/3651144 to your computer and use it in GitHub Desktop.
Save brian428/3651144 to your computer and use it in GitHub Desktop.
Spec that tests basic view and view controller creation
describe "During a successful startup...", ->
it "has created the main tab panel view and view controller", ->
expect( view ).toBeDefined()
expect( view.rendered ).toBeTruthy()
expect( view instanceof JasmineExample.view.MainTabPanel ).toBeTruthy()
expect( viewController ).toBeDefined()
expect( viewController instanceof JasmineExample.controller.MainController ).toBeTruthy()
expect( viewController.getView() is view ).toBeTruthy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment