1 |
30006cc1
|
David Davis
|
require 'rubygems'
|
2 |
|
|
require 'minitest/autorun'
|
3 |
|
|
|
4 |
|
|
require './lib/runcible'
|
5 |
|
|
|
6 |
|
|
class PuppetImporterTest < MiniTest::Unit::TestCase
|
7 |
|
|
def setup
|
8 |
3e3ad61c
|
Partha Aji
|
@attrs = {'feed' => 'http://forge.puppetlabs.com', 'queries' => 'apache'}
|
9 |
30006cc1
|
David Davis
|
@importer = Runcible::Models::PuppetImporter.new(@attrs)
|
10 |
|
|
end
|
11 |
|
|
|
12 |
|
|
def test_config
|
13 |
|
|
assert_equal @attrs, @importer.config
|
14 |
|
|
end
|
15 |
|
|
|
16 |
|
|
def test_repo_type
|
17 |
|
|
assert_equal Runcible::Models::PuppetImporter::REPO_TYPE, @importer.repo_type
|
18 |
|
|
end
|
19 |
|
|
end |