Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not change global variable in test

  • Loading branch information...
commit 910cb681f70705ebfa2030e7e47ae7f61840fed0 1 parent 28b61ea
@tkf tkf authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/auto-complete-test.el
View
8 tests/auto-complete-test.el
@@ -22,8 +22,8 @@
'((candidates list "Foo" "FooBar" "Bar" "Baz" "LongLongLine")))
(ac-source-action-test
'((candidates list "Action1" "Action2")
- (action . (lambda () (message "Done!"))))))
- (setq ac-sources '(ac-source-test ac-source-action-test))
+ (action . (lambda () (message "Done!")))))
+ (ac-sources '(ac-source-test ac-source-action-test)))
(should-not (popup-live-p ac-menu))
(should (eq ac-menu nil))
(insert "Foo")
@@ -38,8 +38,8 @@
'((candidates list "Foo" "FooBar" "Bar" "Baz" "LongLongLine")))
(ac-source-action-test
'((candidates list "Action1" "Action2")
- (action . (lambda () (message "Done!"))))))
- (setq ac-sources '(ac-source-test ac-source-action-test))
+ (action . (lambda () (message "Done!")))))
+ (ac-sources '(ac-source-test ac-source-action-test)))
(should-not (popup-live-p ac-menu))
(should (eq ac-menu nil))
(insert "Foo")
Please sign in to comment.
Something went wrong with that request. Please try again.