Skip to content

Commit

Permalink
Merge pull request pezra#161 from omnistegan/chruby
Browse files Browse the repository at this point in the history
Add `rspec-use-chruby`
  • Loading branch information
dgutov committed Mar 12, 2017
2 parents 159afaf + 9274ccc commit fe33663
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rspec-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@
:type 'boolean
:group 'rspec-mode)

(defcustom rspec-use-chruby nil
"When t, use chruby. Requires chruby.el."
:type 'boolean
:group 'rspec-mode)

(defcustom rspec-docker-command "docker-compose run"
"Docker command to run."
:type 'string
Expand Down Expand Up @@ -790,6 +795,9 @@ or a cons (FILE . LINE), to run one example."
(if rspec-use-rvm
(rvm-activate-corresponding-ruby))

(if rspec-use-chruby
(chruby-use-corresponding))

(let ((default-directory (or (rspec-project-root) default-directory)))
(compile
(rspec-compile-command target opts)
Expand Down

0 comments on commit fe33663

Please sign in to comment.