This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
(define-minor-mode rails-rspec-model-minor-mode |
| 2 |
"Minor mode for RubyOnRails models rspec." |
| 3 |
:lighter " ModelRSpec" |
| 4 |
:keymap (let ((map (rails-model-layout:keymap :rspec-model))) |
| 5 |
(define-key map rails-minor-mode-test-current-method-key 'rails-spec:run-this-spec) |
| 6 |
(define-key map [menu-bar rails-model-layout run] '("RSpec current method" . rails-spec:run-this-spec)) |
| 7 |
map) |
| 8 |
(setq rails-primary-switch-func (lambda() |
| 9 |
(interactive) |
| 10 |
(if (rails-core:mailer-p (rails-core:current-model)) |
| 11 |
(rails-model-layout:switch-to-mailer) |
| 12 |
(rails-model-layout:switch-to-model)))) |
| 13 |
(setq rails-secondary-switch-func 'rails-model-layout:menu)) |
| 14 |
|
| 15 |
(provide 'rails-rspec-model-minor-mode) |