Sha256: 54fe2ad88b740a9741e1d132175e4e29be905f6897007d2d5995fd11503f828c
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 Bytes
Contents
describe "breadcrumbs", -> beforeEach module("mb.controllers") $scope = null beforeEach inject ($rootScope, $controller) -> $scope = $rootScope.$new() $controller "breadcrumbs", $scope: $scope, describe "#showDatabase", -> it "return true when the database is available", -> $scope.dbName = "foo" expect($scope.showDatabase()).toBeTruthy() it "return false when the database is not available", -> $scope.dbName = null expect($scope.showDatabase()).toBeFalsy() describe "#showCollection", -> it "return true when the database is available", -> $scope.collectionName = "foo" expect($scope.showCollection()).toBeTruthy() it "return false when the database is not available", -> $scope.collectionName = null expect($scope.showCollection()).toBeFalsy()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_browser-0.2.0.rc2 | spec/javascripts/app/controllers/breadcrumbs_spec.js.coffee |