From f878039dd6c3ddab6f938011192eefad85f1123f Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 13 Mar 2016 18:12:25 +0000 Subject: [PATCH] Elixir: Add exunit case snippet --- snippets/elixir.snippets | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets index bd62176..17cebbb 100644 --- a/snippets/elixir.snippets +++ b/snippets/elixir.snippets @@ -87,10 +87,6 @@ snippet doc """ snippet fn fn ${1:args} -> ${0} end -snippet fun - function do - ${0} - end snippet mdoc @moduledoc """ ${0} @@ -114,6 +110,12 @@ snippet test end snippet testa test "${1:test_name}", %{${2:arg: arg}} do + ${0} + end +snippet exunit + defmodule ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} do + use ExUnit.Case + ${0} end snippet try try .. rescue .. end