+2012-12-02 Chong Yidong <cyd@gnu.org>
+
+ * automated/ruby-mode-tests.el
+ (ruby-add-log-current-method-examples): Don't use loop macro, to
+ allow automated testing to work.
+
2012-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
* automated/advice-tests.el (advice-tests--data): Remove.
(let ((pairs '(("foo" . "#foo")
("C.foo" . ".foo")
("self.foo" . ".foo"))))
- (loop for (name . value) in pairs
- do (with-temp-buffer
- (insert (ruby-test-string
- "module M
+ (dolist (pair pairs)
+ (let ((name (car pair))
+ (value (cdr pair)))
+ (with-temp-buffer
+ (insert (ruby-test-string
+ "module M
| class C
| def %s
| end
| end
|end"
- name))
- (ruby-mode)
- (search-backward "def")
- (forward-line)
- (should (string= (ruby-add-log-current-method)
- (format "M::C%s" value)))))))
+ name))
+ (ruby-mode)
+ (search-backward "def")
+ (forward-line)
+ (should (string= (ruby-add-log-current-method)
+ (format "M::C%s" value))))))))
(defvar ruby-block-test-example
(ruby-test-string