Created
January 28, 2015 18:31
-
-
Save marcelojunior/f99c6e94ed6efb7057d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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