Project

General

Profile

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

runcible / test / models / puppet_distributor_test.rb @ master

1 30006cc1 David Davis
require 'rubygems'
2
require 'minitest/autorun'
3
4
require './lib/runcible'
5
6
class PuppetDistributorTest < MiniTest::Unit::TestCase
7
  def setup
8 3e3ad61c Partha Aji
    @dist = Runcible::Models::PuppetDistributor.new('/some/path/testing/', true, true)
9 30006cc1 David Davis
  end
10
11
  def test_config
12 3e3ad61c Partha Aji
    config = {'absolute_path' => '/some/path/testing/', 'serve_http' => true, 'serve_https' => true}
13 30006cc1 David Davis
    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