Sha256: 86d03b2760f67883b5c09ddc51157de5bb0b9337aed2b4090dd681652323b296
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
require 'drivers/spec_helper' describe Vos::Drivers::Ssh do before :all do @driver = @driver = Vos::Drivers::Ssh.new(config[:ssh_driver].merge(root: '/vos_test')) @driver.open end after :all do @driver.close end before do @driver._delete_root_dir @driver._create_root_dir end after{@driver._delete_root_dir} it_should_behave_like "vos driver" it_should_behave_like 'vfs driver basic' it_should_behave_like 'vfs driver attributes basic' it_should_behave_like 'vfs driver files' it_should_behave_like 'vfs driver dirs' it_should_behave_like 'vfs driver tmp dir' describe 'limited ssh attributes' do it "attributes for dirs" do @driver.create_dir('/dir') attrs = @driver.attributes('/dir') attrs[:file].should be_false attrs[:dir].should be_true # attrs[:created_at].class.should == Time attrs[:updated_at].class.should == Time attrs.should_not include(:size) end it "attributes for files" do @driver.write_file('/file', false){|w| w.write 'something'} attrs = @driver.attributes('/file') attrs[:file].should be_true attrs[:dir].should be_false # attrs[:created_at].class.should == Time attrs[:updated_at].class.should == Time attrs[:size].should == 9 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vos-0.4.2 | spec/drivers/ssh_spec.rb |
vos-0.4.1 | spec/drivers/ssh_spec.rb |
vos-0.4.0 | spec/drivers/ssh_spec.rb |