 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'))

    @httpBackend.whenGET('/v1/node/'+id).respond({
      'packages':[
        {
          "id": "poiu",
          "name": "accountsservice",
          "summary": "query and manipulate user account information"
        }
      ]
      })

  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'
        ]
      }
