Skip to content

Commit

Permalink
Add a test for backed-up file
Browse files Browse the repository at this point in the history
  • Loading branch information
hico-horiuchi committed Feb 10, 2016
1 parent 2488657 commit 0d72069
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/integration/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d72069

Please sign in to comment.