emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/projectile 8f2e1eafe2: Switch rails-rspec and rails-test s


From: ELPA Syncer
Subject: [nongnu] elpa/projectile 8f2e1eafe2: Switch rails-rspec and rails-test src-dir
Date: Sun, 26 Jun 2022 13:58:42 -0400 (EDT)

branch: elpa/projectile
commit 8f2e1eafe2dd42ea0f3590d2fbd6d171c7f3b0fc
Author: Colin Williams <lackita@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Switch rails-rspec and rails-test src-dir
    
    Rails puts most of its source files under app rather than lib. This
    updates the src-dir to allow easy switching between source and test
    files in this case.
---
 CHANGELOG.md  | 1 +
 projectile.el | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 041055a396..8329177a80 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@
 
 ### Bugs fixed
 
+* [#1781](https://github.com/bbatsov/projectile/pull/1781): Fix `rails-rspec` 
and `rails-test` to use `app` instead of `lib` as `src-dir`
 * [#1762](https://github.com/bbatsov/projectile/pull/1762): Fix 
`projectile-globally-ignored-directories` unescaped regex.
 * [#1713](https://github.com/bbatsov/projectile/issues/1731): Fix 
`projectile-discover-projects-in-directory` reordering known projects.
 * [#1514](https://github.com/bbatsov/projectile/issues/1514): Fix 
`projectile-ag` global ignores not in effect.
diff --git a/projectile.el b/projectile.el
index aaa968d72f..19c5a6d2fa 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3287,13 +3287,13 @@ a manual COMMAND-TYPE command is created with
 (projectile-register-project-type 'rails-test '("Gemfile" "app" "lib" "db" 
"config" "test")
                                   :project-file "Gemfile"
                                   :compile "bundle exec rails server"
-                                  :src-dir "lib/"
+                                  :src-dir "app/"
                                   :test "bundle exec rake test"
                                   :test-suffix "_test")
 (projectile-register-project-type 'rails-rspec '("Gemfile" "app" "lib" "db" 
"config" "spec")
                                   :project-file "Gemfile"
                                   :compile "bundle exec rails server"
-                                  :src-dir "lib/"
+                                  :src-dir "app/"
                                   :test "bundle exec rspec"
                                   :test-dir "spec/"
                                   :test-suffix "_spec")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]