terrimporter 0.6.0 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.rdoc +4 -0
- data/Rakefile +1 -3
- data/config/schema.yml +16 -25
- data/config/terrimporter.config.yml +47 -66
- data/lib/terrimporter.rb +4 -3
- data/lib/terrimporter/array_monkeypatch.rb +11 -0
- data/lib/terrimporter/config_helper.rb +8 -2
- data/lib/terrimporter/configuration.rb +48 -1
- data/lib/terrimporter/downloader.rb +17 -13
- data/lib/terrimporter/importer.rb +96 -43
- data/lib/terrimporter/options.rb +3 -3
- data/lib/terrimporter/string_monkeypatch.rb +12 -0
- data/lib/terrimporter/version.rb +2 -2
- data/terrimporter.config.yml.bak +47 -0
- data/test/fixtures/html/application_root.html +16 -0
- data/test/fixtures/invalid.config.yml +8 -11
- data/test/fixtures/minimal.test.config.yml +13 -0
- data/test/fixtures/test.config.yml +15 -54
- data/test/test_helper.rb +4 -0
- data/test/test_terrimporter.rb +8 -1
- data/test/unit/test_arraymonkeypatch.rb +12 -0
- data/test/unit/test_config_helper.rb +6 -0
- data/test/unit/test_configuration.rb +67 -5
- data/test/unit/test_downloader.rb +13 -6
- data/test/unit/test_importer.rb +32 -11
- data/test/unit/test_options.rb +11 -22
- data/test/unit/test_stringmonkeypatch.rb +12 -0
- data/test/watch.rb +71 -0
- metadata +17 -13
- data/lib/terrimporter/config_validator.rb +0 -21
- data/tasks/load_tasks.rb +0 -3
- data/tasks/version.rake +0 -2
- data/test/helper.rb +0 -0
- data/test/terrimporter.config.yml +0 -68
- data/test/unit/test_config_validator.rb +0 -20
@@ -1,20 +0,0 @@
|
|
1
|
-
require "test_helper"
|
2
|
-
|
3
|
-
|
4
|
-
class ConfigValidatorTest < Test::Unit::TestCase
|
5
|
-
include ConfigHelper
|
6
|
-
|
7
|
-
def setup
|
8
|
-
schema = Kwalify::Yaml.load_file(schema_file_path)
|
9
|
-
validator = ConfigValidator.new(schema)
|
10
|
-
@parser = Kwalify::Yaml::Parser.new(validator)
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
should 'collect validation errors on wrongly used configuration file' do
|
15
|
-
@parser.parse_file(invalid_test_config_file_path)
|
16
|
-
errors = @parser.errors()
|
17
|
-
assert !errors.empty?
|
18
|
-
assert errors.size >= 3
|
19
|
-
end
|
20
|
-
end
|