Sha256: d79ceed031664792ef94383662030dd7fbbc7a87590adbcf52168eab01a23a32

Contents?: true

Size: 831 Bytes

Versions: 1

Compression:

Stored size: 831 Bytes

Contents

describe "breadcrumbs", ->
  beforeEach module("mb")

  $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.5 spec/javascripts/app/controllers/breadcrumbs_controller_spec.js.coffee