Skip to content

Instantly share code, notes, and snippets.

@davidvanleeuwen
Created April 28, 2013 19:26
Show Gist options
  • Save davidvanleeuwen/5478075 to your computer and use it in GitHub Desktop.
Save davidvanleeuwen/5478075 to your computer and use it in GitHub Desktop.
describe 'views:', ->
view = {}
beforeEach ->
view = new modal()
it 'should trigger the first view when rendered', ->
spyOn(view, 'triggerView')
view.render()
expect(view.triggerView).toHaveBeenCalled()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment