describe('FooController', function () {
it ('sets order on scope from service', function () {
var scope = {}, service = { order: {} };
module('myApp');
inject(function($controller) {
$controller('FooController', {
$scope: scope,
fooService: service
});
});
expect(scope.order).toBe(service.order);
});
});