Take the 2008 Git User's Survey and help out! [ 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
Search Repo:
blanket / spec / remote_directory_spec.rb
100644 16 lines (12 sloc) 0.509 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 -f /path/to/remote/directory.tar"
  end
  
end