Sha256: 596c0af7e706d400348304bd6cba1c22d155c469d4536a4824bfd6bd3a1b67f0

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class SessionTest < Test::Unit::TestCase
  def test_should_exec
    using 'astrovan.local', :password => ENV['PASSWORD'] do
      exec 'hostname'
    end
  end

  def test_should_fail_to_exec
    assert_raise RuntimeError do
      using 'astrovan.local', :password => ENV['PASSWORD'] do
        exec 'kjasdhfkjahsdf'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sbfaulkner-astrovan-0.5.0 test/exec_test.rb
sbfaulkner-astrovan-0.5.2 test/exec_test.rb
sbfaulkner-astrovan-0.5.3 test/exec_test.rb
sbfaulkner-astrovan-0.5.4 test/exec_test.rb
sbfaulkner-astrovan-0.5.6 test/exec_test.rb
sbfaulkner-astrovan-0.5.7 test/exec_test.rb