diff --git a/spec/integration/default_spec.rb b/spec/integration/default_spec.rb index a4b80a86..49622567 100644 --- a/spec/integration/default_spec.rb +++ b/spec/integration/default_spec.rb @@ -53,6 +53,12 @@ describe file('/var/itamae/backup/tmp') do it { should be_directory } + it { should be_mode 777 } +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