<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -200,8 +200,8 @@ current line for a series of patterns.&quot;
   &quot;Analyze a string (or ERb block) and open some file related with it.
 For example, on a line with \&quot;render :partial\&quot; runing this
 function will open the partial file.  The function works with
-\&quot;layout 'name'\&quot;, \&quot;render/redirect-to [:action =&gt; 'name',]
-[controller =&gt; 'n']\&quot;, stylesheet_link_tag and other common
+\&quot;layout 'name'\&quot;, \&quot;render/redirect-to [:action =&gt; 'name',] [controller =&gt; 'n']\&quot;,
+stylesheet_link_tag and other common
 patterns.
 
 Rules for actions/controllers:
@@ -220,7 +220,7 @@ Rules for actions/controllers:
                     (current-line-string))))
           (loop for func in rails-on-current-line-gotos
                 until (when (funcall func line prefix) (return t))))
-       (message &quot;Can't switch to some file form this line.&quot;)))))
+       (message &quot;Can't switch to some file from this line.&quot;)))))
 
 (defvar rails-on-current-line-gotos
   '(rails-line--&gt;partial</diff>
      <filename>rails-navigation.el</filename>
    </modified>
    <modified>
      <diff>@@ -1,97 +1,103 @@
-;;; rails-rake.el --- emacs-rails integraions with rake tasks.
-
-;; Copyright (C) 2006 Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;
-
-;; Authors: Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;,
-
-;; Keywords: ruby rails languages oop
-;; $URL: svn+ssh://rubyforge/var/svn/emacs-rails/trunk/rails-scripts.el $
-;; $Id: rails-scripts.el 117 2007-03-25 23:37:37Z dimaexe $
-
-;;; License
-
-;; This program is free software; you can redistribute it and/or
-;; modify it under the terms of the GNU General Public License
-;; as published by the Free Software Foundation; either version 2
-;; of the License, or (at your option) any later version.
-
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-;; GNU General Public License for more details.
-
-;; You should have received a copy of the GNU General Public License
-;; along with this program; if not, write to the Free Software
-;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-
-(eval-when-compile
-  (require 'rails-scripts))
-
-(defvar rails-rake:history (list))
-
-(defvar rails-rake:tasks-regexp &quot;^rake \\([^ ]*\\).*# \\(.*\\)&quot;
-  &quot;Regexp to match tasks list in `rake --tasks` output.&quot;)
-
-(defun rails-rake:create-tasks-cache (file-name)
-  &quot;Create a cache file from rake --tasks output.&quot;
-  (let ((tasks (loop for str in (split-string (rails-cmd-proxy:shell-command-to-string &quot;rake --tasks&quot;) &quot;\n&quot;)
-                     for task = (when (string-not-empty str)
-                                  (string=~ rails-rake:tasks-regexp str $1))
-                     when task collect task)))
-    (write-string-to-file file-name (prin1-to-string tasks))
-    tasks))
-
-(defun rails-rake:list-of-tasks ()
-  &quot;Return all available tasks and create tasks cache file.&quot;
-  (rails-project:in-root
-   (let* ((cache-file (rails-core:file &quot;tmp/.tasks-cache&quot;)))
-     (if (file-exists-p cache-file)
-         (read-from-file cache-file)
-       (rails-rake:create-tasks-cache cache-file)))))
-
-(defun rails-rake:list-of-tasks-without-tests ()
-  &quot;Return available tasks without test actions.&quot;
-  (when-bind
-   (tasks (rails-rake:list-of-tasks))
-   (sort (delete* nil
-                  (mapcar
-                   #'(lambda (it) (if (string=~ &quot;^test\\($\\|:\\)&quot; it t) nil it))
-                   (rails-rake:list-of-tasks))
-                  :if 'null)
-         'string&lt;)))
-
-(defun rails-rake:task (task &amp;optional major-mode)
-  &quot;Run a Rake task in RAILS_ROOT with MAJOR-MODE.&quot;
-  (interactive (rails-completing-read &quot;What task run&quot; (rails-rake:list-of-tasks-without-tests)
-                                      'rails-rake:history nil))
-  (when task
-    (rails-script:run &quot;rake&quot; (list task) major-mode)))
-
-(defun rails-rake:migrate (&amp;optional version)
-  &quot;Run the db:migrate task&quot;
-  (interactive)
-  (rails-rake:task
-   (concat
-    &quot;db:migrate&quot;
-    (typecase version
-      (integer (format &quot; VERSION=%.3i&quot; version))
-      (string (format &quot; VERSION=%s&quot; version))))))
-
-(defun rails-rake:migrate-to-version (version)
-  &quot;Run migrate with VERSION.&quot;
-  (interactive (rails-completing-read &quot;Version of migration&quot;
-                                      (rails-core:migration-versions t)
-                                      nil
-                                      t))
-  (when version
-    (rails-rake:migrate version)))
-
-(defun rails-rake:migrate-to-prev-version ()
-  &quot;Migrate to a previous version.&quot;
-  (interactive)
-  (let ((versions (rails-core:migration-versions t)))
-    (rails-rake:migrate
-     (when (&lt; 2  (length versions))
-       (nth 1 versions)))))
-
-(provide 'rails-rake)
+;;; rails-rake.el --- emacs-rails integraions with rake tasks.
+
+;; Copyright (C) 2006 Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;
+
+;; Authors: Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;,
+
+;; Keywords: ruby rails languages oop
+;; $URL: svn+ssh://rubyforge/var/svn/emacs-rails/trunk/rails-scripts.el $
+;; $Id: rails-scripts.el 117 2007-03-25 23:37:37Z dimaexe $
+
+;;; License
+
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License
+;; as published by the Free Software Foundation; either version 2
+;; of the License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program; if not, write to the Free Software
+;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+
+(eval-when-compile
+  (require 'rails-scripts))
+
+(defvar rails-rake:history (list))
+
+(defvar rails-rake:tasks-regexp &quot;^rake \\([^ ]*\\).*# \\(.*\\)&quot;
+  &quot;Regexp to match tasks list in `rake --tasks` output.&quot;)
+
+(defun rails-rake:create-tasks-cache (file-name)
+  &quot;Create a cache file from rake --tasks output.&quot;
+  (let ((tasks (loop for str in (split-string (rails-cmd-proxy:shell-command-to-string &quot;rake --tasks&quot;) &quot;\n&quot;)
+                     for task = (when (string-not-empty str)
+                                  (string=~ rails-rake:tasks-regexp str $1))
+                     when task collect task)))
+    (write-string-to-file file-name (prin1-to-string tasks))
+    tasks))
+
+(defun rails-rake:list-of-tasks ()
+  &quot;Return all available tasks and create tasks cache file.&quot;
+  (rails-project:in-root
+   (let* ((cache-file (rails-core:file &quot;tmp/.tasks-cache&quot;)))
+     (if (file-exists-p cache-file)
+         (read-from-file cache-file)
+       (rails-rake:create-tasks-cache cache-file)))))
+
+(defun rails-rake:list-of-tasks-without-tests ()
+  &quot;Return available tasks without test actions.&quot;
+  (when-bind
+   (tasks (rails-rake:list-of-tasks))
+   (sort (delete* nil
+                  (mapcar
+                   #'(lambda (it) (if (string=~ &quot;^test\\($\\|:\\)&quot; it t) nil it))
+                   (rails-rake:list-of-tasks))
+                  :if 'null)
+         'string&lt;)))
+
+(defun rails-rake:task (task &amp;optional major-mode)
+  &quot;Run a Rake task in RAILS_ROOT with MAJOR-MODE.&quot;
+  (interactive (rails-completing-read &quot;What task run&quot; (rails-rake:list-of-tasks-without-tests)
+                                      'rails-rake:history nil))
+  (when task
+    (rails-script:run &quot;rake&quot; (list task) major-mode)))
+
+(defun rails-rake:migrate (&amp;optional version)
+  &quot;Run the db:migrate task&quot;
+  (interactive)
+  (rails-rake:task
+   (concat
+    &quot;db:migrate&quot;
+    (typecase version
+      (integer (format &quot; VERSION=%.3i&quot; version))
+      (string (format &quot; VERSION=%s&quot; version))))))
+
+(defun rails-rake:migrate-to-version (version)
+  &quot;Run migrate with VERSION.&quot;
+  (interactive (rails-completing-read &quot;Version of migration&quot;
+                                      (rails-core:migration-versions t)
+                                      nil
+                                      t))
+  (when version
+    (rails-rake:migrate version)))
+
+(defun rails-rake:migrate-to-prev-version ()
+  &quot;Migrate to a previous version.&quot;
+  (interactive)
+  (let ((versions (rails-core:migration-versions t)))
+    (rails-rake:migrate
+     (when (&lt; 2  (length versions))
+       (nth 1 versions)))))
+
+;; This function was originally defined anonymously in ui. It was defined here so keys
+;; can be added to it dryly
+(defun rails-rake:clone-development-db-to-test-db ()
+  &quot;Clone development DB to test DB.&quot;
+  (interactive) (rails-rake:task &quot;db:test:clone&quot;))
+
+(provide 'rails-rake)</diff>
      <filename>rails-rake.el</filename>
    </modified>
    <modified>
      <diff>@@ -1,167 +1,190 @@
-;;; rails-test.el --- tests integration with the compile library
-
-;; Copyright (C) 2006 Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;
-
-;; Authors: Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;,
-
-;; Keywords: ruby rails languages oop
-;; $URL: svn+ssh://rubyforge/var/svn/emacs-rails/trunk/rails-ws.el $
-;; $Id: rails-ws.el 140 2007-03-27 23:33:36Z dimaexe $
-
-;;; License
-
-;; This program is free software; you can redistribute it and/or
-;; modify it under the terms of the GNU General Public License
-;; as published by the Free Software Foundation; either version 2
-;; of the License, or (at your option) any later version.
-
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-;; GNU General Public License for more details.
-
-;; You should have received a copy of the GNU General Public License
-;; along with this program; if not, write to the Free Software
-;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-
-;;; Code:
-
-(defvar rails-test:history nil)
-
-(defconst rails-test:result-regexp
-  &quot;\\([0-9]+ tests, [0-9]+ assertions, \\([0-9]+\\) failures, \\([0-9]+\\) errors\\)&quot;)
-
-(defconst rails-test:progress-regexp
-  &quot;^[\\.EF]+$&quot;)
-
-(defun rails-test:file-ext-regexp ()
-  (let ((rails-templates-list (append rails-templates-list (list &quot;rb&quot;))))
-    (substring (rails-core:regex-for-match-view) 0 -1)))
-
-(defun rails-test:line-regexp (&amp;optional append prepend)
-  (concat
-   append
-   (format
-    &quot;\\(#{RAILS_ROOT}\/\\)?\\(\\(\\.\\|[A-Za-z]:\\)?\\([a-z/_.-]+%s\\)\\):\\([0-9]+\\)&quot;
-    (rails-test:file-ext-regexp))
-   prepend))
-
-(defun rails-test:error-regexp-alist ()
-  (list
-   (list 'rails-test-trace
-         (rails-test:line-regexp) 2 6 nil 0)
-   (list 'rails-test-failure
-         (rails-test:line-regexp &quot;\\[&quot; &quot;\\]&quot;) 2 6 nil 2)
-   (list 'rails-test-error
-         (rails-test:line-regexp nil &quot;.*\n$&quot;) 2 6 nil 2)))
-
-(defun rails-test:print-result ()
-  (with-current-buffer (get-buffer rails-script:buffer-name)
-    (let ((msg (list))
-          (failures 0)
-          (errors 0))
-      (save-excursion
-        (goto-char (point-min))
-        (while (re-search-forward rails-test:result-regexp (point-max) t)
-          (setq failures (+ failures (string-to-number (match-string-no-properties 2))))
-          (setq errors (+ errors (string-to-number (match-string-no-properties 3))))
-          (add-to-list 'msg (match-string-no-properties 1))))
-      (unless (zerop (length msg))
-        (message (strings-join &quot; || &quot; (reverse msg))))
-      (when (and (or (not (zerop rails-script:output-mode-ret-value))
-                     (not (zerop errors))
-                     (not (zerop failures)))
-                 (not (buffer-visible-p (current-buffer))))
-        (rails-script:popup-buffer)))))
-
-(defun rails-test:print-progress (start end len)
-  (let (content)
-    (save-excursion
-      (goto-char (point-min))
-      (while (re-search-forward &quot;^Started&quot; end t)
-        (line-move 1)
-        (save-match-data
-          (let ((progress (string=~ rails-test:progress-regexp
-                                    (current-line-string) $m)))
-            (when progress
-              (setq content (concat content progress)))))))
-    (when content
-      (message &quot;Progress of %s: %s&quot; rails-script:running-script-name content))))
-
-(define-derived-mode rails-test:compilation-mode compilation-mode &quot;RTest&quot;
-  &quot;Major mode for RoR tests.&quot;
-  (rails-script:setup-output-buffer)
-  (set (make-local-variable 'compilation-error-regexp-alist-alist)
-       (rails-test:error-regexp-alist))
-  (set (make-local-variable 'compilation-error-regexp-alist)
-       '(rails-test-error
-         rails-test-failure
-         rails-test-trace))
-  (add-hook 'after-change-functions 'rails-test:print-progress nil t)
-  (add-hook 'rails-script:run-after-stop-hook 'rails-test:print-result nil t)
-  (add-hook 'rails-script:show-buffer-hook
-            #'(lambda()
-                (let ((win (get-buffer-window (current-buffer))))
-                  (when (window-live-p win)
-                    (set-window-point win 0)
-                    (unless (buffer-visible-p (current-buffer))
-                      (compilation-set-window-height win)))))
-            t t))
-
-(defun rails-test:list-of-tasks ()
-  &quot;Return a list contains test tasks.&quot;
-  (append (list &quot;all&quot;)
-          (delete* nil
-                   (mapcar
-                    #'(lambda (task) (string=~ &quot;^test\\:\\([^ ]+\\)&quot; task $1))
-                    (rails-rake:list-of-tasks))
-                   :if 'null)))
-
-(defun rails-test:run (task)
-  &quot;Run rake tests in RAILS_ROOT.&quot;
-  (interactive (rails-completing-read &quot;What test run&quot;
-                                      (rails-test:list-of-tasks)
-                                      'rails-test:history t))
-  (unless task
-    (setq task &quot;all&quot;)
-    (add-to-list rails-test:history task))
-  (let ((task-name
-         (if (string= &quot;all&quot; task)
-             &quot;test&quot;
-           (concat &quot;test:&quot; task))))
-    (rails-rake:task task-name 'rails-test:compilation-mode)))
-
-(defun rails-test:run-single-file (file &amp;optional param)
-  &quot;Run test for single file FILE.&quot;
-  (let ((param (if param (append (list file) (list param))
-                 (list file))))
-    (rails-script:run &quot;ruby&quot; param 'rails-test:compilation-mode)))
-
-(defun rails-test:run-current ()
-  &quot;Run a test for the current controller/model/mailer.&quot;
-  (interactive)
-  (let* ((model (rails-core:current-model))
-         (controller (rails-core:current-controller))
-         (func-test (rails-core:functional-test-file controller))
-         (unit-test (rails-core:unit-test-file model))
-         (mailer-test (rails-core:unit-test-file controller)))
-    (rails-test:run-single-file
-     (cond
-      ;; model
-      ((and model unit-test) unit-test)
-      ;; controller
-      ((and controller (not (rails-core:mailer-p controller)) func-test)
-       func-test)
-     ;; mailer
-     ((and controller (rails-core:mailer-p controller) unit-test)
-      unit-test)))))
-
-(defun rails-test:run-current-method ()
-  &quot;Run a test for the current method.&quot;
-  (interactive)
-  (let ((file (substring (buffer-file-name) (length (rails-project:root))))
-        (method (rails-core:current-method-name)))
-    (when method
-      (rails-test:run-single-file file (format &quot;--name=%s&quot; method)))))
-
-(provide 'rails-test)
\ No newline at end of file
+;;; rails-test.el --- tests integration with the compile library
+
+;; Copyright (C) 2006 Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;
+
+;; Authors: Dmitry Galinsky &lt;dima dot exe at gmail dot com&gt;,
+
+;; Keywords: ruby rails languages oop
+;; $URL: svn+ssh://rubyforge/var/svn/emacs-rails/trunk/rails-ws.el $
+;; $Id: rails-ws.el 140 2007-03-27 23:33:36Z dimaexe $
+
+;;; License
+
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License
+;; as published by the Free Software Foundation; either version 2
+;; of the License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program; if not, write to the Free Software
+;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+
+;;; Code:
+
+(defvar rails-test:history nil)
+
+(defconst rails-test:result-regexp
+  &quot;\\([0-9]+ tests, [0-9]+ assertions, \\([0-9]+\\) failures, \\([0-9]+\\) errors\\)&quot;)
+
+(defconst rails-test:progress-regexp
+  &quot;^[\\.EF]+$&quot;)
+
+(defun rails-test:file-ext-regexp ()
+  (let ((rails-templates-list (append rails-templates-list (list &quot;rb&quot;))))
+    (substring (rails-core:regex-for-match-view) 0 -1)))
+
+(defun rails-test:line-regexp (&amp;optional append prepend)
+  (concat
+   append
+   (format
+    &quot;\\(#{RAILS_ROOT}\/\\)?\\(\\(\\.\\|[A-Za-z]:\\)?\\([a-z/_.-]+%s\\)\\):\\([0-9]+\\)&quot;
+    (rails-test:file-ext-regexp))
+   prepend))
+
+(defun rails-test:error-regexp-alist ()
+  (list
+   (list 'rails-test-trace
+         (rails-test:line-regexp) 2 6 nil 0)
+   (list 'rails-test-failure
+         (rails-test:line-regexp &quot;\\[&quot; &quot;\\]&quot;) 2 6 nil 2)
+   (list 'rails-test-error
+         (rails-test:line-regexp nil &quot;.*\n$&quot;) 2 6 nil 2)))
+
+(defun rails-test:print-result ()
+  (with-current-buffer (get-buffer rails-script:buffer-name)
+    (let ((msg (list))
+          (failures 0)
+          (errors 0))
+      (save-excursion
+        (goto-char (point-min))
+        (while (re-search-forward rails-test:result-regexp (point-max) t)
+          (setq failures (+ failures (string-to-number (match-string-no-properties 2))))
+          (setq errors (+ errors (string-to-number (match-string-no-properties 3))))
+          (add-to-list 'msg (match-string-no-properties 1))))
+      (unless (zerop (length msg))
+        (message (strings-join &quot; || &quot; (reverse msg))))
+      (when (and (or (not (zerop rails-script:output-mode-ret-value))
+                     (not (zerop errors))
+                     (not (zerop failures)))
+                 (not (buffer-visible-p (current-buffer))))
+        (rails-script:popup-buffer)))))
+
+(defun rails-test:print-progress (start end len)
+  (let (content)
+    (save-excursion
+      (goto-char (point-min))
+      (while (re-search-forward &quot;^Started&quot; end t)
+        (line-move 1)
+        (save-match-data
+          (let ((progress (string=~ rails-test:progress-regexp
+                                    (current-line-string) $m)))
+            (when progress
+              (setq content (concat content progress)))))))
+    (when content
+      (message &quot;Progress of %s: %s&quot; rails-script:running-script-name content))))
+
+(define-derived-mode rails-test:compilation-mode compilation-mode &quot;RTest&quot;
+  &quot;Major mode for RoR tests.&quot;
+  (rails-script:setup-output-buffer)
+  (set (make-local-variable 'compilation-error-regexp-alist-alist)
+       (rails-test:error-regexp-alist))
+  (set (make-local-variable 'compilation-error-regexp-alist)
+       '(rails-test-error
+         rails-test-failure
+         rails-test-trace))
+  (add-hook 'after-change-functions 'rails-test:print-progress nil t)
+  (add-hook 'rails-script:run-after-stop-hook 'rails-test:print-result nil t)
+  (add-hook 'rails-script:show-buffer-hook
+            #'(lambda()
+                (let ((win (get-buffer-window (current-buffer))))
+                  (when (window-live-p win)
+                    (set-window-point win 0)
+                    (unless (buffer-visible-p (current-buffer))
+                      (compilation-set-window-height win)))))
+            t t))
+
+(defun rails-test:list-of-tasks ()
+  &quot;Return a list contains test tasks.&quot;
+  (append (list &quot;all&quot;)
+          (delete* nil
+                   (mapcar
+                    #'(lambda (task) (string=~ &quot;^test\\:\\([^ ]+\\)&quot; task $1))
+                    (rails-rake:list-of-tasks))
+                   :if 'null)))
+
+(defun rails-test:run (task)
+  &quot;Run rake tests in RAILS_ROOT.&quot;
+  (interactive (rails-completing-read &quot;What test run&quot;
+                                      (rails-test:list-of-tasks)
+                                      'rails-test:history t))
+  (unless task
+    (setq task &quot;all&quot;)
+    (add-to-list rails-test:history task))
+  (let ((task-name
+         (if (string= &quot;all&quot; task)
+             &quot;test&quot;
+           (concat &quot;test:&quot; task))))
+    (rails-rake:task task-name 'rails-test:compilation-mode)))
+
+(defun rails-test:run-single-file (file &amp;optional param)
+  &quot;Run test for single file FILE.&quot;
+  (let ((param (if param (append (list file) (list param))
+                 (list file))))
+    (rails-script:run &quot;ruby&quot; param 'rails-test:compilation-mode)))
+
+(defun rails-test:run-current ()
+  &quot;Run a test for the current controller/model/mailer.&quot;
+  (interactive)
+  (let* ((model (rails-core:current-model))
+         (controller (rails-core:current-controller))
+         (func-test (rails-core:functional-test-file controller))
+         (unit-test (rails-core:unit-test-file model))
+         (mailer-test (rails-core:unit-test-file controller)))
+    (rails-test:run-single-file
+     (cond
+      ;; model
+      ((and model unit-test) unit-test)
+      ;; controller
+      ((and controller (not (rails-core:mailer-p controller)) func-test)
+       func-test)
+     ;; mailer
+     ((and controller (rails-core:mailer-p controller) unit-test)
+      unit-test)))))
+
+(defun rails-test:run-current-method ()
+  &quot;Run a test for the current method.&quot;
+  (interactive)
+  (let ((file (substring (buffer-file-name) (length (rails-project:root))))
+        (method (rails-core:current-method-name)))
+    (when method
+      (rails-test:run-single-file file (format &quot;--name=%s&quot; method)))))
+
+;; These functions were originally defined anonymously in ui. They are defined here so keys
+;; can be added to them dryly
+(defun rails-test:run-integration ()
+  &quot;Run Integration Tests.&quot;
+  (interactive)
+  (rails-test:run &quot;integration&quot;))
+(defun rails-test:run-units ()
+  &quot;Run Unit Tests.&quot;
+  (interactive)
+  (rails-test:run &quot;units&quot;))
+(defun rails-test:run-functionals ()
+  &quot;Run Functional Tests.&quot;
+  (interactive)
+  (rails-test:run &quot;functionals&quot;))
+(defun rails-test:run-recent ()
+  &quot;Run Recent Tests.&quot;
+  (interactive)
+  (rails-test:run &quot;recent&quot;))
+(defun rails-test:run-all ()
+  &quot;Run All Tests.&quot;
+  (interactive)
+  (rails-test:run &quot;all&quot;))
+
+(provide 'rails-test)</diff>
      <filename>rails-test.el</filename>
    </modified>
    <modified>
      <diff>@@ -86,11 +86,11 @@
 (defconst rails-minor-mode-tests-menu-bar-map
   (let ((map (make-sparse-keymap)))
     (define-keys map
-      ([integration] '(&quot;Integration Tests&quot; . (lambda() (interactive) (rails-test:run &quot;integration&quot;))))
-      ([unit]        '(&quot;Unit Tests&quot;        . (lambda() (interactive) (rails-test:run &quot;units&quot;))))
-      ([functional]  '(&quot;Functional Tests&quot;  . (lambda() (interactive) (rails-test:run &quot;functionals&quot;))))
-      ([recent]      '(&quot;Recent Tests&quot;      . (lambda() (interactive) (rails-test:run &quot;recent&quot;))))
-      ([tests]       '(&quot;All&quot;               . (lambda() (interactive) (rails-test:run &quot;all&quot;))))
+      ([integration] '(&quot;Integration Tests&quot; . rails-test:run-integration))
+      ([unit]        '(&quot;Unit Tests&quot;        . rails-test:run-units))
+      ([functional]  '(&quot;Functional Tests&quot;  . rails-test:run-functionals))
+      ([recent]      '(&quot;Recent Tests&quot;      . rails-test:run-recent))
+      ([tests]       '(&quot;All&quot;               . rails-test:run-all))
       ([separator]   '(&quot;--&quot;))
       ([toggle]      '(menu-item &quot;Toggle Output Window&quot; rails-script:toggle-output-window
                                  :enable (get-buffer rails-script:buffer-name)))
@@ -101,7 +101,7 @@
 (defconst rails-minor-mode-db-menu-bar-map
   (let ((map (make-sparse-keymap)))
     (define-keys map
-      ([clone-db]    '(&quot;Clone Development DB to Test DB&quot; . (lambda() (interactive) (rails-rake:task &quot;db:test:clone&quot;))))
+      ([clone-db]    '(&quot;Clone Development DB to Test DB&quot; . rails-rake:clone-development-db-to-test-db))
       ([load-schema] '(&quot;Load schema.rb to DB&quot;               . (lambda() (interactive) (rails-rake:task &quot;db:schema:load&quot;))))
       ([dump-schema] '(&quot;Dump DB to schema.rb&quot;               . (lambda() (interactive) (rails-rake:task &quot;db:schema:dump&quot;))))
       ([sep]         '(&quot;--&quot;))
@@ -266,15 +266,24 @@
   ((rails-key &quot;\C-c d m&quot;) 'rails-rake:migrate)
   ((rails-key &quot;\C-c d v&quot;) 'rails-rake:migrate-to-version)
   ((rails-key &quot;\C-c d p&quot;) 'rails-rake:migrate-to-prev-version)
+  ((rails-key &quot;\C-c d t&quot;) 'rails-rake:clone-development-db-to-test-db)
 
   ;; Tests
   ((rails-key &quot;\C-c r&quot;)   'rails-rake:task)
   ((rails-key &quot;\C-c t&quot;)   'rails-test:run)
   ((rails-key &quot;\C-c .&quot;)   'rails-test:run-current)
+  ((rails-key &quot;\C-c y i&quot;)   'rails-test:run-integration)
+  ((rails-key &quot;\C-c y u&quot;)   'rails-test:run-units)
+  ((rails-key &quot;\C-c y f&quot;)   'rails-test:run-functionals)
+  ((rails-key &quot;\C-c #&quot;)   'rails-test:run-recent)
+  ((rails-key &quot;\C-c y a&quot;)   'rails-test:run-all)
 
-  ;; Navigation
-
+  ;; Log files
   ((rails-key &quot;\C-c l&quot;)    'rails-log:open)
+  ((rails-key &quot;\C-c o t&quot;)    'rails-log:open-test)
+  ((rails-key &quot;\C-c o p&quot;)    'rails-log:open-production)
+  ((rails-key &quot;\C-c o d&quot;)    'rails-log:open-development)
+
   ;; Tags
   ((rails-key &quot;\C-c \C-t&quot;) 'rails-create-tags)
 </diff>
      <filename>rails-ui.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>80c3b474fb408e2d9685f6f8645813ff73b57d49</id>
    </parent>
  </parents>
  <author>
    <name>dimaexe</name>
    <email>dimaexe@cc5033d0-740f-0410-afc7-949910e492f2</email>
  </author>
  <url>http://github.com/tomtt/emacs-rails/commit/1abc3fecceec7a2c64b983724650223c20cbfe10</url>
  <id>1abc3fecceec7a2c64b983724650223c20cbfe10</id>
  <committed-date>2007-08-04T13:31:07-07:00</committed-date>
  <authored-date>2007-08-04T13:31:07-07:00</authored-date>
  <message>rails-test.el, rails-ui.el: apply patch #11998, created additional key shortcuts (thanks Tom Ten Thij)


git-svn-id: svn+ssh://rubyforge.org/var/svn/emacs-rails/trunk@203 cc5033d0-740f-0410-afc7-949910e492f2</message>
  <tree>8588ba6fc0397f2e720937d56f61f9922ee859e9</tree>
  <committer>
    <name>dimaexe</name>
    <email>dimaexe@cc5033d0-740f-0410-afc7-949910e492f2</email>
  </committer>
</commit>
