Skip to content

yasnippet compatible versions of the TextMate-bundled rSpec snippets.

Notifications You must be signed in to change notification settings

rwc9u/yasnippets-rspec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rspec yasnippets

Installation

I am assuming you have yasnippets installed.

(yas-load-directory "<your location>/yasnippets-rspec/rspec-snippets")

Information

Contents

  • rspec-snippets: the actual directory of snippets

Differences from the TextMate versions:

  • Controller snippets, describe blocks, matcher gain {lead,trail}ing newline
  • RESTful controller dropdown order is natural (vs. GET|POST|PUT|DELETE)
  • it block handling broken into "it" for the block form and "itd" for a one line form
  • mock_with snippet order is natural (vs. mocha|flexmock|rr)
  • should{,_not} be_instance_of snippet shortcuts changed shbio and shnbio for consistency
  • dropped 'shkof' for should_not be_kind_of, opting for the more consistent shnbko
  • should{,_not} eq{ua}l matcher order is now natural
  • should{_not} {match,=~} order is now natural
  • should_{redirect,render,respond} order is now natural

Differences from upstream fork

  • Changed rspec snippets to be in their own rspec group.
  • Updated installation to remove older initialization of yas.

About

yasnippet compatible versions of the TextMate-bundled rSpec snippets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%