Skip to content

Commit 0d72069

Browse files
committed
Add a test for backed-up file
1 parent 2488657 commit 0d72069

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/integration/default_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353

5454
describe file('/var/itamae/backup/tmp') do
5555
it { should be_directory }
56+
it { should be_mode 777 }
57+
end
58+
59+
describe command('cat /var/itamae/backup/tmp/file.itamae-*') do
60+
its(:stdout) { should match(/Hello World/) }
61+
its(:exit_status) { should eq(0) }
5662
end
5763

5864
describe file('/tmp/file') do

0 commit comments

Comments
 (0)