" insert a before { } block around a line
nnoremap <silent> \bf ^ibefore { <esc>$a }

" insert a specify { } block around a line
nnoremap <silent> \sp ^ispecify { <esc>$a }

" RSpec.vim mappings
let g:rspec_command = ":!clear; bundle exec rspec -f doc {spec}"

map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>

" insert a before { } block around a line
nnoremap <silent> \bf ^ibefore { <esc>$a }

" insert a specify { } block around a line
nnoremap <silent> \sp ^ispecify { <esc>$a }

" RSpec.vim mappings
let g:rspec_command = ":!clear; bundle exec spring rspec -f doc {spec}"

map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>

Prepend spring to speed up test feedback
Prepend spring to speed up test feedback

cfabianski/yadr-dotfiles,cfabianski/yadr-dotfiles