Skip to content

Instantly share code, notes, and snippets.

@marcelojunior
Created January 28, 2015 18:35
Show Gist options
  • Save marcelojunior/f67a52f4345bf8c8d110 to your computer and use it in GitHub Desktop.
Save marcelojunior/f67a52f4345bf8c8d110 to your computer and use it in GitHub Desktop.
'use strict'
describe 'Controller: ClientsIndexCtrl', ->
beforeEach module 'projeto1'
ClientsIndexCtrl = {}
scope = {}
# Initialize the controller and a mock scope
beforeEach inject ($controller, $rootScope) ->
scope = $rootScope.$new()
ClientsIndexCtrl = $controller 'ClientsIndexCtrl', {
$scope: scope
}
it 'should attach a list of awesomeThings to the scope', ->
expect(scope.awesomeThings.length).toBe 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment