File: test_ssh_server_comes_up_for_functional_tests.rb

package info (click to toggle)
ruby-sshkit 1.21.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 700 kB
  • sloc: ruby: 3,522; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'helper'

module SSHKit

  class TestHost < FunctionalTest

    def host
      @_host ||= Host.new('')
    end

    def test_that_it_works
      assert true
    end

    def test_creating_a_user_gives_us_back_his_private_key_as_a_string
      skip 'It is not safe to create an user for non vagrant envs' unless VagrantWrapper.running?
      keys = create_user_with_key(:peter)
      assert_equal [:one, :two, :three], keys.keys
      assert keys.values.all?
    end

  end

end