Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 636 Bytes
(define-minor-mode rails-rspec-controller-minor-mode
"Minor mode for RubyOnRails controller rspec."
:lighter " ControllerRSpec"
:keymap (let ((map (rails-controller-layout:keymap :rspec-controllers)))
(define-key map rails-minor-mode-test-current-method-key 'rails-spec:run-this-spec)
(define-key map [menu-bar rails-controller-layout run] '("RSPec current method" . rails-spec:run-this-spec))
map)
(setq rails-primary-switch-func 'rails-controller-layout:switch-to-controller)
(setq rails-secondary-switch-func 'rails-controller-layout:menu))
(provide 'rails-rspec-controller-minor-mode)