aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChong Yidong2012-12-02 14:06:32 +0800
committerChong Yidong2012-12-02 14:06:32 +0800
commit89eb3b0ae7dcb7ae819efd448899103b0d4ee93e (patch)
treef5223dcf7d8cee057258536021712372060ecd3d /test
parent1cbaa705e733d496a6eab3a8f1521dec52953fcf (diff)
downloademacs-89eb3b0ae7dcb7ae819efd448899103b0d4ee93e.tar.gz
emacs-89eb3b0ae7dcb7ae819efd448899103b0d4ee93e.zip
Fix for bad test in ruby-mode-tests.el.
* automated/ruby-mode-tests.el (ruby-add-log-current-method-examples): Don't use loop macro, to allow automated testing to work.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog6
-rw-r--r--test/automated/ruby-mode-tests.el22
2 files changed, 18 insertions, 10 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index b66c2925287..21f0f29b73b 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
12012-12-02 Chong Yidong <cyd@gnu.org>
2
3 * automated/ruby-mode-tests.el
4 (ruby-add-log-current-method-examples): Don't use loop macro, to
5 allow automated testing to work.
6
12012-11-20 Stefan Monnier <monnier@iro.umontreal.ca> 72012-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * automated/advice-tests.el (advice-tests--data): Remove. 9 * automated/advice-tests.el (advice-tests--data): Remove.
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el
index ad48413b030..620fe72fb69 100644
--- a/test/automated/ruby-mode-tests.el
+++ b/test/automated/ruby-mode-tests.el
@@ -296,21 +296,23 @@ VALUES-PLIST is a list with alternating index and value elements."
296 (let ((pairs '(("foo" . "#foo") 296 (let ((pairs '(("foo" . "#foo")
297 ("C.foo" . ".foo") 297 ("C.foo" . ".foo")
298 ("self.foo" . ".foo")))) 298 ("self.foo" . ".foo"))))
299 (loop for (name . value) in pairs 299 (dolist (pair pairs)
300 do (with-temp-buffer 300 (let ((name (car pair))
301 (insert (ruby-test-string 301 (value (cdr pair)))
302 "module M 302 (with-temp-buffer
303 (insert (ruby-test-string
304 "module M
303 | class C 305 | class C
304 | def %s 306 | def %s
305 | end 307 | end
306 | end 308 | end
307 |end" 309 |end"
308 name)) 310 name))
309 (ruby-mode) 311 (ruby-mode)
310 (search-backward "def") 312 (search-backward "def")
311 (forward-line) 313 (forward-line)
312 (should (string= (ruby-add-log-current-method) 314 (should (string= (ruby-add-log-current-method)
313 (format "M::C%s" value))))))) 315 (format "M::C%s" value))))))))
314 316
315(defvar ruby-block-test-example 317(defvar ruby-block-test-example
316 (ruby-test-string 318 (ruby-test-string