Skip to content

Commit

Permalink
fix(controller): awesomeThings "undefined" error in coffescript tests
Browse files Browse the repository at this point in the history
fixes #2 and #3
  • Loading branch information
Gonzalo Ruiz de Villa committed Oct 28, 2013
1 parent 6fc784e commit c0904c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/coffeescript-min/spec/controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ describe 'Controller: <%= _.classify(name) %>Ctrl', () ->
}

it 'should attach a list of awesomeThings to the scope', () ->
expect(scope.awesomeThings.length).toBeUndefined()
expect(scope.awesomeThings).toBeUndefined()
$httpBackend.flush()
expect(scope.awesomeThings.length).toBe 3
2 changes: 1 addition & 1 deletion templates/coffeescript/spec/controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ describe 'Controller: <%= _.classify(name) %>Ctrl', () ->
}

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

0 comments on commit c0904c3

Please sign in to comment.