Skip to content

Commit

Permalink
fixed spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 4, 2014
1 parent 1dea27d commit 174637e
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions test/spec/controllers/pages.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@

describe 'Controller: PagesCtrl', () ->

# load the controller's module
beforeEach module 'angularCmsApp'
# load the controller's module
beforeEach module 'angularCmsApp'

PagesCtrl = {}
scope = {}
PagesCtrl = {}
scope = {}

# Initialize the controller and a mock scope
beforeEach inject ($controller, $rootScope) ->
scope = $rootScope.$new()
PagesCtrl = $controller 'PagesCtrl', {
$scope: scope
}
# Initialize the controller and a mock scope
beforeEach inject ($controller, $rootScope, $injector) ->
scope = $rootScope.$new()
PagesCtrl = $controller 'PagesCtrl', {
$scope: scope
$log: $injector.get('$log')
pages: []
DataService: $injector.get('DataService')
}

it 'should attach a list of awesomeThings to the scope', () ->
expect(scope.awesomeThings.length).toBe 3
it 'should attach a list of awesomeThings to the scope', () ->
expect(scope.awesomeThings.length).toBe 3

0 comments on commit 174637e

Please sign in to comment.