Skip to content

Commit e1359a1

Browse files
committed
Add a test for backed-up file
1 parent 7dbe6fa commit e1359a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/integration/default_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
it { should be_directory }
5656
end
5757

58+
describe command('cat /var/itamae/backup/tmp/file.itamae-*') do
59+
its(:stdout) { should match(/Hello World/) }
60+
its(:exit_status) { should eq(0) }
61+
end
62+
5863
describe file('/tmp/file') do
5964
it { should be_file }
6065
its(:content) { should match(/Hello New World/) }

0 commit comments

Comments
 (0)