Created
August 18, 2008 17:02
-
-
Save febuiles/6029 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 270ebebbc2997b56cbea33b29293ef81d0d6a667 Mon Sep 17 00:00:00 2001 | |
From: Federico Builes <federico.builes@gmail.com> | |
Date: Mon, 18 Aug 2008 12:01:07 -0500 | |
Subject: [PATCH] Rewrite routes to find specs instead of test/unit files. | |
--- | |
rinari-movement.el | 4 ++-- | |
rinari.el | 8 ++++---- | |
2 files changed, 6 insertions(+), 6 deletions(-) | |
diff --git a/rinari-movement.el b/rinari-movement.el | |
index c7efce0..aab0e5b 100644 | |
--- a/rinari-movement.el | |
+++ b/rinari-movement.el | |
@@ -33,8 +33,8 @@ | |
(:controller . "app/controllers/*_controller\.rb$") | |
(:view . "app/views/*.rhtml$") | |
(:view_two . "app/views/*.html.erb$") | |
- (:functional . "test/functional/*_controller_test\.rb$") | |
- (:unit . "test/unit/*_test\.rb$")) | |
+ (:functional . "spec/controllers/*_controller_spec\.rb$") | |
+ (:unit . "spec/models/*_spec\.rb$")) | |
"Subdirectories of a Rails projects and their contents") | |
(defvar rinari-subdir-regexps | |
diff --git a/rinari.el b/rinari.el | |
index 7c5e279..ff58dfa 100644 | |
--- a/rinari.el | |
+++ b/rinari.el | |
@@ -273,10 +273,10 @@ otherwise turn `rinari-minor-mode' off if it is on." | |
;; customize toggle.el for rinari | |
(add-to-list | |
'toggle-mapping-styles | |
- '(rinari . (("app/controllers/\\1.rb#\\2" . "test/functional/\\1_test.rb#test_\\2") | |
- ("app/controllers/\\1.rb" . "test/functional/\\1_test.rb") | |
- ("app/models/\\1.rb#\\2" . "test/unit/\\1_test.rb#test_\\2") | |
- ("app/models/\\1.rb" . "test/unit/\\1_test.rb") | |
+ '(rinari . (("app/controllers/\\1.rb#\\2" . "spec/controllers/\\1_spec.rb") | |
+ ("app/controllers/\\1.rb" . "spec/controllers/\\1_spec.rb") | |
+ ("app/models/\\1.rb#\\2" . "spec/models/\\1_spec.rb#test_\\2") | |
+ ("app/models/\\1.rb" . "spec/models/\\1_spec.rb") | |
("lib/\\1.rb#\\2" . "test/unit/test_\\1.rb#test_\\2") | |
("lib/\\1.rb" . "test/unit/test_\\1.rb")))) | |
(setq toggle-mapping-style 'rinari) | |
-- | |
1.5.6.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment