summaryrefslogtreecommitdiff
path: root/test/tc_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_config.rb')
-rwxr-xr-xtest/tc_config.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/tc_config.rb b/test/tc_config.rb
index ad4877c..255bdb7 100755
--- a/test/tc_config.rb
+++ b/test/tc_config.rb
@@ -45,6 +45,15 @@ feeds:
url: http://something2
target: imap://login:pasword@ezaezae/Feeds/B
EOF
+CONFARRAYTARGET = <<EOF
+parts: text
+include-images: false
+prefix: &target "maildir:///tmp/Maildir/"
+feeds:
+ - name: feed1
+ url: http://something
+ target: [ *target, "feed1" ]
+EOF
class ConfigTest < Test::Unit::TestCase
def test_cache
@@ -79,4 +88,11 @@ class ConfigTest < Test::Unit::TestCase
assert conf.parts.include?('text')
assert ! conf.parts.include?('html')
end
+
+ def test_url_array
+ sio = StringIO::new CONFARRAYTARGET
+ conf = F2IConfig::new(sio)
+ assert_equal "/tmp/Maildir/feed1", conf.feeds.first.folder
+ end
+
end