Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added rspec-mode #3067

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions layers/+lang/ruby/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
flycheck
robe
ruby-test-mode
rspec-mode
ruby-tools))

(when ruby-version-manager
Expand Down Expand Up @@ -116,6 +117,23 @@
(evil-leader/set-key-for-mode 'enh-ruby-mode "msR" 'ruby-send-region-and-go)
(evil-leader/set-key-for-mode 'enh-ruby-mode "mss" 'ruby-switch-to-inf))))

(defun rspec/init-rspec-mode ()
(use-package rspec-mode
:defer t
:config
(progn
(spacemacs|diminish rspec-mode " Ƨ" " RSp")

(evil-leader/set-key-for-mode 'enh-ruby-mode
"mps" 'rspec-verify-single
"mpa" 'rspec-verify-all
"mpr" 'rspec-rerun
"mpb" 'rspec-verify-matching
"mpc" 'rspec-verify-continue
"mpm" 'rspec-verify-method
"mpt" 'rspec-toggle-example-pendingness
))))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the mp prefix? Shouldn't this be under the mt prefix per the conventions

(defun ruby/init-ruby-test-mode ()
"Define keybindings for ruby test mode"
(use-package ruby-test-mode
Expand Down