Skip to content

Commit

Permalink
Use rspec test runner in spacemacs and improve sprint detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lest committed Mar 14, 2017
1 parent c1b8882 commit a7cbf90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spacemacs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
git
github
html
ruby
(ruby :variables ruby-test-runner 'rspec)
ruby-on-rails
javascript
react
Expand Down Expand Up @@ -212,6 +212,10 @@ layers configuration."
(setq rubocop-check-command "bundle exec rubocop --format emacs")
(defun rubocop-ensure-installed ()))
(with-eval-after-load 'rspec-mode
(defun rspec-spring-p ()
(message (concat (rspec-project-root) "bin/spring"))
(and rspec-use-spring-when-possible
(file-executable-p (concat (rspec-project-root) "bin/spring"))))
(defun rspec-runner ()
"Return command line to run rspec."
(let ((bundle-command (if (rspec-bundle-p) "bundle exec " ""))
Expand Down

0 comments on commit a7cbf90

Please sign in to comment.