 describe 'Controller: MainCtrl', ()->
 
   # load the required module
-  beforeEach(angular.mock.module("restangular"))
+  beforeEach(angular.mock.module('restangular'))
 
   # load the controller's module
   beforeEach(module('postriderApp'))

  # Initialize the controller and a mock scope
  beforeEach( inject( ($injector, $controller, $rootScope) ->
    scope = $rootScope.$new()
    @Restangular = $injector.get("Restangular")
    @httpBackend = $injector.get("$httpBackend")

    # reliably determine object types
    # http://stackoverflow.com/questions/7390426/better-way-to-get-type-of-a-javascript-variable

  it 'should be able to access /package/xyz info (filled one)', () ->
    id = 'xyz'
    r = {
        'name': 'accountsservice',
        'uri': 'http://us.archive.ubuntu.com/ubuntu/pool/main/a/accountsservice/accountsservice_0.6.15-2ubuntu9_amd64.deb',
        'summary': 'query and manipulate user account information',
        'version': '0.6.15-2ubuntu9',
        'architecture': 'amd64',
        'provider': 'apt',
        'archive': 'precise',
        'nodes': [
          'my1.full.fqdn'
        ]
      }
