Permalink
Browse files

Do not change global variable in test

  • Loading branch information...
1 parent 28b61ea commit 910cb681f70705ebfa2030e7e47ae7f61840fed0 @tkf tkf committed Sep 16, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 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")

0 comments on commit 910cb68

Please sign in to comment.