Sha256: 5b5bc60ac5c9d28664e5ee9e1ed426f34a52fbaa5909c9855bedbfa303c0c348
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
describe('ShowsCtrl', function () { 'use strict'; var $httpBackend, scope, ctrl, tabloService, tabloBaseUrl; beforeEach(module('ac.tabloConnectApp')); beforeEach(inject(function ($rootScope, $controller, _$httpBackend_, _tabloService_, _tabloBaseUrl_) { $httpBackend = _$httpBackend_; scope = $rootScope.$new(); tabloService = _tabloService_; tabloBaseUrl = _tabloBaseUrl_; spyOn(tabloService, 'showData').and.callThrough(); ctrl = $controller('ShowsCtrl', {$scope: scope, $element: scope.$element, tabloBaseUrl: tabloBaseUrl}); })); afterEach(function () { $httpBackend.verifyNoOutstandingExpectation(); $httpBackend.verifyNoOutstandingRequest(); }); it ("calls tabloService.showData", function(){ expect(tabloService.showData).toHaveBeenCalled(); }); it('sets the tabloBaseUrl', function () { expect(scope.tabloBaseUrl).toEqual(tabloBaseUrl); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tablo_connect-0.0.3 | spec/javascript/unit/controllers/shows_controller_spec.js |
tablo_connect-0.0.2 | spec/javascript/unit/controllers/shows_controller_spec.js |