mirror of
1
0
Fork 0
ultimate-vim/sources_non_forked/vim-elixir/spec/indent/receive_spec.rb

23 lines
346 B
Ruby

require 'spec_helper'
describe 'receive indent' do
i <<~EOF
receive do
after
end
EOF
i <<~EOF
def obtain_lock(pid, key, timeout \\ 60_000) do
case GenServer.call(pid, {:obtain_lock, key}) do
:will_notify ->
receive do
after
timeout ->
end
res -> res
end
end
EOF
end