       $rootScope.$digest()
 
       changeInputValue element, "f"
-      expect($(".mac-menu-item").text() == "foo").toBe true
+      expect($(".mac-menu-item").text()).toBe "foo"
 
     it "should use a url string and work exactly like mac-autocomplete-url", ->
       $httpBackend.when("GET", "/api/autocomplete?q=f").respond({data})

    it "should call error", ->
      $httpBackend.when("GET", "/api/404?q=f").respond(404)

      called           = false
      $rootScope.url   = "/api/404"
      $rootScope.error = (data) -> called = true

      element = $compile("<mac-autocomplete ng-model='test' mac-autocomplete-url='url' mac-autocomplete-on-error='error(data)'></mac-autocomplete>") $rootScope
      $rootScope.$digest()

      $timeout.flush()
      $httpBackend.flush()

      expect($rootScope.error).toHaveBeenCalled()

  describe "model -> view", ->
    it "should update the view", ->
