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 Jan 17, 2016
1 parent 7dbe6fa commit e1359a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/integration/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/) }
Expand Down

0 comments on commit e1359a1

Please sign in to comment.