Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Updated the controllerSpec to reflect the codebase #4988

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions docs/content/tutorial/step_04.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ describe('PhoneCat controllers', function() {
describe('PhoneListCtrl', function(){
var scope, ctrl;

beforeEach(function() {
scope = {},
ctrl = new PhoneListCtrl(scope);
});

beforeEach(module('phonecatApp'));

beforeEach(inject(function($controller) {
scope = {};
ctrl = $controller('PhoneListCtrl', {$scope:scope});
}));

it('should create "phones" model with 3 phones', function() {
expect(scope.phones.length).toBe(3);
Expand Down