Skip to content

Instantly share code, notes, and snippets.

@marcelojunior
Created January 28, 2015 18:31
Show Gist options
  • Save marcelojunior/f99c6e94ed6efb7057d1 to your computer and use it in GitHub Desktop.
Save marcelojunior/f99c6e94ed6efb7057d1 to your computer and use it in GitHub Desktop.
'use strict'
describe 'Controller: ClientsIndexCtrl', ->
beforeEach module 'belasis'
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