Sha256: 13182f538c9a111115a0e4282925aea465d0de84ec8853d331a777f9d5eba9b7
Contents?: true
Size: 742 Bytes
Versions: 4
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' describe EM::FS do describe '.rsync' do it 'should create an `RsyncCommand` with :progress flag' do EM.run do @dir = File.join(SPEC_ROOT, 'data', 'test') cmd = EM::FS.rsync '/usr/share/test1', '/usr/share/test2' cmd.should be_a EM::FS::RsyncCommand cmd.command.should == 'rsync --progress /usr/share/test1 /usr/share/test2' EM.stop_event_loop end end end describe '.find' do it 'should create `SystemCommand`' do EM.run do @dir = File.join(SPEC_ROOT, 'data', 'test') cmd = EM::FS.find '.' cmd.should be_a EM::SystemCommand cmd.command.should == 'find .' EM.stop_event_loop end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
em-fs-0.1.2 | spec/fs_spec.rb |
em-fs-0.1.1 | spec/fs_spec.rb |
em-fs-0.1.0 | spec/fs_spec.rb |
em-fs-0.0.1 | spec/fs_spec.rb |