Permalink
Browse files

Ruby snippets

  • Loading branch information...
1 parent c01e2b3 commit 41956d905d53824fa012b2b6ea82c84c3ac9fd87 @jferris committed Oct 19, 2010
Showing with 2 additions and 8 deletions.
  1. +2 −8 vim/after/ftplugin/ruby.vim
@@ -81,10 +81,8 @@ Snippet shreq should_require_attributes :<{}>
Snippet shrequniq should_require_unique_attributes :<{}>
" Factory girl
-Snippet F Factory(:<{factory}>)<{}>
-Snippet Fb Factory.build(:<{factory}>)<{}>
-Snippet Fw Factory(:<{factory}>, :<{}>)
-Snippet Fbw Factory.build(:<{factory}>, :<{}>)
+Snippet F Factory(:<{}>)
+Snippet Fb Factory.build(:<{}>)
" shoulda association macros
Snippet shbt should_belong_to :<{association}><CR><{}>
@@ -103,10 +101,6 @@ Snippet shres should_respond_with :<{}>
Snippet shroute should_route :<{method}>, "<{path}>", :action => :<{}>
Snippet shfl should_set_the_flash_to /<{}>/i
-" shoulda contexts
-Snippet cont context "<{description}>" do<CR>setup do<CR><{}><CR>end<CR>end
-Snippet sh should "<{description}>" do<CR><{}><CR>end
-
"rspec
Snippet desc ``DefaultSpecDescribe()`` "<{description}>" do<CR><{}><CR>end
Snippet descn describe <{class}> do<CR><{}><CR>end

0 comments on commit 41956d9

Please sign in to comment.