Sha256: 1db5dd7473bf8b9356fad2613d8d0abb967536ce819c18691b76a5d62d2bf1e2

Contents?: true

Size: 407 Bytes

Versions: 10

Compression:

Stored size: 407 Bytes

Contents

require 'support/kitchen_helper'

module ValidationHelper

  module SshCommandTests
    include KitchenHelper

    def test_barks_without_atleast_a_hostname
      cmd = command
      cmd.ui.expects(:err).with(regexp_matches(/hostname.*argument/))
      $stdout.stubs(:puts)
      in_kitchen do
        assert_exits cmd
      end
    end
  end

  module ValidationTests
    include SshCommandTests
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
knife-solo-0.4.3 test/support/validation_helper.rb
knife-solo-0.4.2 test/support/validation_helper.rb
knife-solo-0.4.1 test/support/validation_helper.rb
knife-solo-0.4.0 test/support/validation_helper.rb
knife-solo-0.3.0 test/support/validation_helper.rb
knife-solo-0.3.0.pre5 test/support/validation_helper.rb
knife-solo-0.3.0.pre4 test/support/validation_helper.rb
knife-solo-0.3.0.pre3 test/support/validation_helper.rb
knife-solo-0.3.0.pre2 test/support/validation_helper.rb
knife-solo-0.3.0.pre1 test/support/validation_helper.rb