From e1359a128bbb308690862e3cd4e3569305c78cd4 Mon Sep 17 00:00:00 2001 From: Akihiko Horiuchi <12ff5b8@gmail.com> Date: Sun, 17 Jan 2016 16:38:26 +0900 Subject: [PATCH] Add a test for backed-up file --- spec/integration/default_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/integration/default_spec.rb b/spec/integration/default_spec.rb index a4b80a86..c5f76dde 100644 --- a/spec/integration/default_spec.rb +++ b/spec/integration/default_spec.rb @@ -55,6 +55,11 @@ it { should be_directory } end +describe command('cat /var/itamae/backup/tmp/file.itamae-*') do + its(:stdout) { should match(/Hello World/) } + its(:exit_status) { should eq(0) } +end + describe file('/tmp/file') do it { should be_file } its(:content) { should match(/Hello New World/) }