Repository: climate Updated Branches: refs/heads/master 7284c424c -> 63fc51e55
CLIMATE-492 - Drop boilerplate about controller and test Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/806deba6 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/806deba6 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/806deba6 Branch: refs/heads/master Commit: 806deba686586b31d3612e8a2d3056ba4dad8688 Parents: 7284c42 Author: Michael Joyce <[email protected]> Authored: Sun Aug 3 20:18:45 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Sun Aug 3 20:18:45 2014 -0700 ---------------------------------------------------------------------- .../app/scripts/controllers/about.js | 36 ----------------- .../frontend-new/test/spec/controllers/about.js | 41 -------------------- 2 files changed, 77 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/806deba6/ocw-ui/frontend-new/app/scripts/controllers/about.js ---------------------------------------------------------------------- diff --git a/ocw-ui/frontend-new/app/scripts/controllers/about.js b/ocw-ui/frontend-new/app/scripts/controllers/about.js deleted file mode 100644 index 1971120..0000000 --- a/ocw-ui/frontend-new/app/scripts/controllers/about.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http: *www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -'use strict'; - -/** - * @ngdoc function - * @name ocwUiApp.controller:AboutCtrl - * @description - * # AboutCtrl - * Controller of the ocwUiApp - */ -angular.module('ocwUiApp') - .controller('AboutCtrl', function ($scope) { - $scope.awesomeThings = [ - 'HTML5 Boilerplate', - 'AngularJS', - 'Karma' - ]; - }); http://git-wip-us.apache.org/repos/asf/climate/blob/806deba6/ocw-ui/frontend-new/test/spec/controllers/about.js ---------------------------------------------------------------------- diff --git a/ocw-ui/frontend-new/test/spec/controllers/about.js b/ocw-ui/frontend-new/test/spec/controllers/about.js deleted file mode 100644 index a73f93a..0000000 --- a/ocw-ui/frontend-new/test/spec/controllers/about.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http: *www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -'use strict'; - -describe('Controller: AboutCtrl', function () { - - // load the controller's module - beforeEach(module('ocwUiApp')); - - var AboutCtrl, - scope; - - // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { - scope = $rootScope.$new(); - AboutCtrl = $controller('AboutCtrl', { - $scope: scope - }); - })); - - it('should attach a list of awesomeThings to the scope', function () { - expect(scope.awesomeThings.length).toBe(3); - }); -});
