Permalink
Browse files

Snippets for describe and setup.

  • Loading branch information...
1 parent 0449eba commit 3119679ea40459399b8d9faee4b3834ae7c73a12 @keathley keathley committed Aug 6, 2016
Showing with 21 additions and 0 deletions.
  1. +21 −0 snippets/language-elixir.cson
@@ -71,6 +71,27 @@
'spec':
'prefix': 'spec'
'body': '@spec ${1:function_name}($2) :: ${3:type}'
+
+ 'describe':
+ 'prefix': 'describe'
+ 'body': """
+ describe "${1:tests}" do
+ $2
+ end
+ """
+
+ 'setup':
+ 'prefix': 'setup'
+ 'body': """
+ setup ${1:%{$2\\}} do
+ $3
+ end
+ """
+
+ 'inline setup':
+ 'prefix': 'isetup'
+ 'body': 'setup [$1]'
+
'test':
'prefix': 'test'
'body': 'test "$1" do\n\t$0\nend'

0 comments on commit 3119679

Please sign in to comment.