vimrc/sources_non_forked/vim-elixir/spec/indent/tuples_spec.rb

27 lines
417 B
Ruby

require 'spec_helper'
describe "Indenting" do
specify "multiline tuple" do
<<-EOF
def xpto do
{ :a,
:b,
:c }
end
EOF
.should be_elixir_indentation
end
specify "tuples with break line after square brackets" do
<<-EOF
def method do
{
:bar,
path: "deps/umbrella/apps/bar"
}
end
EOF
.should be_elixir_indentation
end
end