Add factory snippet for Ruby

This commit is contained in:
Tom Willemse 2016-02-08 01:10:27 +01:00
parent f5121275b5
commit ae51a8c1bc

View 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