Failing test: `requires' property for one source must not effect others #218

Open
tkf opened this Issue Mar 23, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Member

tkf commented Mar 23, 2013

(ert-deftest ac-test-property-requires ()
  "`requires' property for one source must not effect others."
  (ac-test-with-common-setup
    (let ((ac-source-test-1
           '((candidates . '("Foo" "Bar" "Baz"))))
          (ac-source-test-2
           '((candidates . '("FOO" "BAR" "BAZ"))
             (requires . 1)))
          (ac-sources '(ac-source-test-1 ac-source-test-2)))
      (should-not (popup-live-p ac-menu))
      (should (eq ac-menu nil))
      (execute-kbd-macro "F")
      (auto-complete)
      (ac-update-greedy)
      (should (popup-live-p ac-menu))
      (should (equal (popup-list ac-menu) '("FOO"))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment