Project

General

Profile

Download (481 Bytes) Statistics
| Branch: | Tag: | Revision:

runcible / test / models / puppet_distributor_test.rb @ master

1
require 'rubygems'
2
require 'minitest/autorun'
3

    
4
require './lib/runcible'
5

    
6
class PuppetDistributorTest < MiniTest::Unit::TestCase
7
  def setup
8
    @dist = Runcible::Models::PuppetDistributor.new('/some/path/testing/', true, true)
9
  end
10

    
11
  def test_config
12
    config = {'absolute_path' => '/some/path/testing/', 'serve_http' => true, 'serve_https' => true}
13
    assert_equal config, @dist.config
14
  end
15

    
16
  def test_type_id
17
    assert_equal('puppet_distributor', @dist.type_id)
18
  end
19
end