Add factory snippet for Ruby
This commit is contained in:
parent
f5121275b5
commit
ae51a8c1bc
1 changed files with 9 additions and 0 deletions
9
emacs/.emacs.d/snippets/ruby-mode/factory
Normal file
9
emacs/.emacs.d/snippets/ruby-mode/factory
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: factory
|
||||||
|
# key: factory
|
||||||
|
# --
|
||||||
|
FactoryGirl.define do
|
||||||
|
factory :${1:`(file-name-sans-extension (file-name-nondirectory buffer-file-name))`} do
|
||||||
|
$0
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue