47 lines
515 B
Ruby
47 lines
515 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe 'Map indent' do
|
|
i <<~'EOF'
|
|
DrMock.mock(fn ->
|
|
params = %{
|
|
|
|
}
|
|
end)
|
|
EOF
|
|
|
|
i <<~EOF
|
|
x = %{
|
|
foo: :bar
|
|
}
|
|
|
|
y = :foo
|
|
EOF
|
|
|
|
i <<~EOF
|
|
x =
|
|
%{ foo: :bar }
|
|
|
|
y = :foo
|
|
EOF
|
|
|
|
i <<~EOF
|
|
x = %{
|
|
foo: :bar }
|
|
|
|
y = :foo
|
|
EOF
|
|
|
|
i <<~EOF
|
|
test "test" do
|
|
Mod.fun(fn ->
|
|
map = %Mod.Map{
|
|
id: "abc123",
|
|
state: "processing",
|
|
submod: %Mod.Submod{
|
|
options: %{}
|
|
}
|
|
}
|
|
EOF
|
|
end
|