GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Blanket is a flexible backup framework designed to get the drudgery out of the way and to make automated backups easy.
Homepage: http://jimvanfleet.com/projects/blanket
Clone URL: git://github.com/bigfleet/blanket.git
commit  9ce51ee24cceaaa965e675d7b2deb4dca202fc1f
tree    8ef2835b7d2d4bf141376f48441c7b0100a9fd55
parent  d4e20ec7c0d343066f5d65d2af5965f38e896c56
blanket / spec / remote_directory_spec.rb
100644 15 lines (11 sloc) 0.499 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require File.dirname(__FILE__) + "/spec_helper.rb"
 
describe "The remote directory source" do
  
  before(:each) do
    @file = File.dirname(__FILE__) + "/fixtures/remote_directory.yml"
    @reader = Blanket::Reader.new(@file)
    @instance = RemoteDirectory.new(@reader)
  end
  
  it "should decompose a directory into appropriate components" do
    @instance.prep_command.should == "tar cvf /path/to/remote/directory.tar /path/to/remote/directory; gzip /path/to/remote/directory.tar"
  end
  
end