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

35 lines
521 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe 'Indenting documentation' do
i <<~EOF
defmodule Test do
@doc """
end
"""
end
EOF
it "bulk indenting doc blocks" do
expect(<<~EOF).to be_elixir_indentation
defmodule Test do
@doc """
do not reindent
any indent that i do
please
"""
end
EOF
end
i <<~EOF
defmodule Test do
@doc """
it should
have reasonable
default start indent when typed
"""
EOF
end