Files
roboto-promoto/test/client/spec/controllers/promotions.js
2014-03-23 22:01:12 +00:00

23 lines
536 B
JavaScript

'use strict';
describe('Controller: PromotionsCtrl', function () {
// load the controller's module
beforeEach(module('robotoPromotoApp'));
var PromotionsCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
PromotionsCtrl = $controller('PromotionsCtrl', {
$scope: scope
});
}));
it('should attach a list of awesomeThings to the scope', function () {
expect(scope.awesomeThings.length).toBe(3);
});
});