1 |
547786b5
|
Chris Duryee
|
require 'rubygems'
|
2 |
|
|
require 'minitest/autorun'
|
3 |
|
|
|
4 |
|
|
require './lib/runcible'
|
5 |
|
|
|
6 |
|
|
class GroupExportDistributorTest < MiniTest::Unit::TestCase
|
7 |
|
|
def setup
|
8 |
|
|
@dist = Runcible::Models::GroupExportDistributor.new(true, true)
|
9 |
|
|
end
|
10 |
|
|
|
11 |
|
|
def test_config
|
12 |
|
|
assert_equal(true, @dist.config["http"])
|
13 |
|
|
assert_equal(true, @dist.config["https"])
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
assert_equal('group_export_distributor', @dist.config["distributor_type_id"])
|
17 |
|
|
assert_equal({:http => true, :https => true}, @dist.config["distributor_config"])
|
18 |
|
|
end
|
19 |
|
|
|
20 |
|
|
def test_type_id
|
21 |
|
|
assert_equal('group_export_distributor', @dist.type_id)
|
22 |
|
|
end
|
23 |
|
|
end |