Skip to content

Commit

Permalink
Update tests, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Jun 4, 2018
1 parent 4ebc02c commit 0981c01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion after/plugin/puppet_tabular.vim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if exists(':AddTabularPipeline') && g:puppet_align_classes
endfunction


" The unction is filtering definition by '$' or '=>', then applies tabular to
" The function is filtering definition by '$' or '=>', then applies tabular to
" payload and join again. Source for this taken from
" https://unix.stackexchange.com/questions/35787/indent-the-middle-of-multiple-lines
function! AlignPuppetClass(lines)
Expand Down
10 changes: 5 additions & 5 deletions tests/tabular_test.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@
},
) {
file { '/just_example':
ensure => 'directory',
ensure=>'directory',
}
# Another useful case
# Breaks by <C-a>, works with => autoalignment
if $rsa_private_key != undef {
some::cool::helper { $user:
home_dir => '/home/user',
authorized_keys => [
home_dir=> '/home/user',
authorized_keys =>[
convert_ssh_rsa_private_to_public_key($rsa_private_key)
],
rsa_private_key => $rsa_private_key,
rsa_private_key =>$rsa_private_key,
}
}
# should be changed by <C-a>, also works with => autoalignment
$somehash = {
'key1'=> true,
'key1' => true,
'another_key'=> false,
}
Expand Down

0 comments on commit 0981c01

Please sign in to comment.