Sha256: 6bcbc9eee1ea70252d7c4016eeba511c8894195a1d92d60a27d7187db8ee797a

Contents?: true

Size: 406 Bytes

Versions: 7

Compression:

Stored size: 406 Bytes

Contents

$:.unshift File.expand_path("../..", __FILE__)

require 'net/ssh/session'

def fixture_path(filename=nil)
  path = File.expand_path("../fixtures", __FILE__)
  filename.nil? ? path : File.join(path, filename)
end

def fixture(file)
  File.read(File.join(fixture_path, file))
end

def fake_run(command, output, exit_code=0, duration=0)
  Net::SSH::SessionCommand.new(command, output, exit_code, duration)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
net-ssh-session-0.1.6 spec/spec_helper.rb
net-ssh-session-0.1.5 spec/spec_helper.rb
net-ssh-session-0.1.4 spec/spec_helper.rb
net-ssh-session-0.1.3 spec/spec_helper.rb
net-ssh-session-0.1.2 spec/spec_helper.rb
net-ssh-session-0.1.1 spec/spec_helper.rb
net-ssh-session-0.1.0 spec/spec_helper.rb