Skip to content

Commit

Permalink
Set config about Ruby project
Browse files Browse the repository at this point in the history
  • Loading branch information
niku authored and bbatsov committed Mar 17, 2018
1 parent 40b01b9 commit 824488c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projectile.el
Expand Up @@ -2431,21 +2431,27 @@ TEST-DIR which specifies the path to the tests relative to the project root."
;; Ruby
(projectile-register-project-type 'ruby-rspec '("Gemfile" "lib" "spec")
:compile "bundle exec rake"
:src-dir "lib/"
:test "bundle exec rspec"
:test-dir "spec/"
:test-suffix "_spec")
(projectile-register-project-type 'ruby-test '("Gemfile" "lib" "test")
:compile"bundle exec rake"
:src-dir "lib/"
:test "bundle exec rake test"
:test-suffix "_test")
;; Rails needs to be registered after npm, otherwise `package.json` makes it `npm`.
;; https://github.com/bbatsov/projectile/pull/1191
(projectile-register-project-type 'rails-test '("Gemfile" "app" "lib" "db" "config" "test")
:compile "bundle exec rails server"
:src-dir "lib/"
:test "bundle exec rake test"
:test-suffix "_test")
(projectile-register-project-type 'rails-rspec '("Gemfile" "app" "lib" "db" "config" "spec")
:compile "bundle exec rails server"
:src-dir "lib/"
:test "bundle exec rspec"
:test-dir "spec/"
:test-suffix "_spec")

(defvar-local projectile-project-type nil
Expand Down

0 comments on commit 824488c

Please sign in to comment.