1
0
Fork 0
mirror of synced 2024-06-29 20:11:09 -04:00
ultimate-vim/sources_non_forked/vim-elixir/spec/indent/try_spec.rb
2022-05-19 01:31:41 +08:00

42 lines
453 B
Ruby

require 'spec_helper'
describe 'try indent' do
i <<~EOF
try do
rescue
end
EOF
i <<~EOF
try do
catch
end
EOF
i <<~EOF
try do
after
end
EOF
i <<~EOF
test "it proceses the command" do
out = "testfile"
try do
cmd = "thing \#{@test_file} \#{out}"
{:ok, 0, _} = Thing.exec(cmd)
after
File.rm!(out)
end
end
EOF
i <<~EOF
try do
foo()
else
value -> value
end
EOF
end