Sha256: 2551ae779e89984c29672062d135f1b5bce7607f49037112cb8075086548a555

Contents?: true

Size: 523 Bytes

Versions: 8

Compression:

Stored size: 523 Bytes

Contents

require 'rbfs/rsync'

describe Rbfs::Rsync do
  it "should run_command" do
    Rbfs::Rsync.new.run_command("echo test").should eql("test\n")
  end

  it "should run_command block" do
    Rbfs::Rsync.new.run_command("echo test") do |io|
      io.read.should eql("test\n")
    end
  end

  it "should command" do
    Rbfs::Rsync.new.command("echo", ["test"]).should eql("test\n")
  end

  it "should command block" do
    Rbfs::Rsync.new.command("echo", ["test"]) do |io|
      io.read.should eql("test\n")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbfs-0.0.10 spec/rbfs/rsync_spec.rb
rbfs-0.0.9 spec/rbfs/rsync_spec.rb
rbfs-0.0.8 spec/rbfs/rsync_spec.rb
rbfs-0.0.7 spec/rbfs/rsync_spec.rb
rbfs-0.0.6 spec/rbfs/rsync_spec.rb
rbfs-0.0.5 spec/rbfs/rsync_spec.rb
rbfs-0.0.4 spec/rbfs/rsync_spec.rb
rbfs-0.0.3 spec/rbfs/rsync_spec.rb