Sha256: 587d2cebdefae38a41cfa2158cea732aca59cf519d5ef91612d4d38ad898e93a

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

require 'helper'

class TestRunpuppet < Test::Unit::TestCase
  context 'Config' do
    should "parse the auth info from url" do
      Runpuppet::Config.stubs(:config => {'puppet_controller_url' => 'http://user:pass@example.com'})
      assert_equal "http://user:pass@example.com", Runpuppet::Config.puppet_controller_url
      assert_equal ['user', 'pass'], Runpuppet::Config.puppet_controller_auth
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
runpuppet-0.5.6 test/test_runpuppet.rb
runpuppet-0.5.5 test/test_runpuppet.rb
runpuppet-0.5.4 test/test_runpuppet.rb
runpuppet-0.5.3 test/test_runpuppet.rb
runpuppet-0.5.2 test/test_runpuppet.rb
runpuppet-0.5.1 test/test_runpuppet.rb