Skip to content

Commit

Permalink
(maint) add source to expected test results
Browse files Browse the repository at this point in the history
also closes puppetlabs#89
  • Loading branch information
eputnam committed May 26, 2017
1 parent 055d34e commit f9d9585
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/defines/get_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@

it {
is_expected.to contain_exec("rsync foobar").with({
'command' => 'rsync -q -a --chown=user:group foobar',
'onlyif' => "test `rsync --dry-run --itemize-changes -a --chown=user:group foobar | wc -l` -gt 0"
'command' => 'rsync -q -a --chown=user:group example.com foobar',
'onlyif' => "test `rsync --dry-run --itemize-changes -a --chown=user:group example.com foobar | wc -l` -gt 0"
})
}
end
Expand All @@ -300,8 +300,8 @@

it {
is_expected.to contain_exec("rsync foobar").with({
'command' => 'rsync -q -a --chmod=Dg-s,u+w,go-w,+X,+x foobar',
'onlyif' => "test `rsync --dry-run --itemize-changes -a --chmod=Dg-s,u+w,go-w,+X,+x foobar | wc -l` -gt 0"
'command' => 'rsync -q -a --chmod=Dg-s,u+w,go-w,+X,+x example.com foobar',
'onlyif' => "test `rsync --dry-run --itemize-changes -a --chmod=Dg-s,u+w,go-w,+X,+x example.com foobar | wc -l` -gt 0"
})
}
end
Expand All @@ -313,8 +313,8 @@

it {
is_expected.to contain_exec("rsync foobar").with({
'command' => 'rsync -q -a --log-file=/tmp/logfile.out foobar',
'onlyif' => "test `rsync --dry-run --itemize-changes -a --log-file=/tmp/logfile.out foobar | wc -l` -gt 0"
'command' => 'rsync -q -a --log-file=/tmp/logfile.out example.com foobar',
'onlyif' => "test `rsync --dry-run --itemize-changes -a --log-file=/tmp/logfile.out example.com foobar | wc -l` -gt 0"
})
}
end
Expand Down

0 comments on commit f9d9585

Please sign in to comment.