Skip to content

Commit

Permalink
Spec for #55
Browse files Browse the repository at this point in the history
  • Loading branch information
iiska committed Jan 29, 2013
1 parent 8d2573b commit e26c90f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/lib/backup_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Backup do
describe ".process" do

it "should include mysqldump into the zip file" do
backup = Backup.new
backup.process

zip = Zip::ZipFile.open(Backup::BACKUP_ZIP)
zip.should_not be_nil

entry = zip.find_entry("database_backup.sql")
entry.should_not be_nil
entry.get_input_stream do |f|
f.read(100).length.should > 0
end
end
end
end

0 comments on commit e26c90f

Please sign in to comment.