Merge pull request #279 from bsutic/improve-ruby-desc
Improve ruby `desc` snippet
This commit is contained in:
commit
58231ac52c
@ -957,7 +957,7 @@ snippet tctss
|
|||||||
# Rspec snippets #
|
# Rspec snippets #
|
||||||
##########################
|
##########################
|
||||||
snippet desc
|
snippet desc
|
||||||
describe ${1:class_name} do
|
describe ${1:`substitute(substitute(vim_snippets#Filename(), '_spec$', '', ''), '\(_\|^\)\(.\)', '\u\2', 'g')`} do
|
||||||
${0}
|
${0}
|
||||||
end
|
end
|
||||||
snippet descm
|
snippet descm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user