Sha256: e009fb45a367e6fb5348520b2c76cb6f35c5793ffbab3ae78b38bc6a391d01f8

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

describe "main", ->
  beforeEach module("mb.controllers")

  $scope = null
  $httpBackend = null

  beforeEach inject ($injector, $rootScope, $controller) ->
    $scope = $rootScope.$new()

    $httpBackend = $injector.get('$httpBackend')
    $httpBackend.when("GET", "/api/version.json").respond([])

    $controller "main",
      $scope: $scope

    $httpBackend.flush()

  it "fetches the app version", ->
    $httpBackend.verifyNoOutstandingExpectation()
    $httpBackend.verifyNoOutstandingRequest()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_browser-0.2.0.rc2 spec/javascripts/app/controllers/main_spec.js.coffee