1
0
Fork 0
mirror of synced 2024-05-24 19:15:22 -04:00
ultimate-vim/sources_non_forked/vim-elixir/spec/indent/def_spec.rb
2022-05-19 01:31:41 +08:00

29 lines
456 B
Ruby

require 'spec_helper'
describe 'def indentation' do
i <<~EOF
def handle_call({:release_lock, key}, _from, state) do
case get_lock(state, key) do
nil ->
{:reply, {:error, :already_unlocked}, state}
_ ->
new_state = delete_lock(state, key)
{:reply, :ok, new_state}
end
end
def
EOF
i <<~EOF
defmodule Hello do
def hello do
end
#{"\n" * 40}
def world do
end
end
EOF
end