summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 ba70b33..ce910e9 100755
--- a/test/tc_config.rb
+++ b/test/tc_config.rb
@@ -25,6 +25,15 @@ feeds:
url: http://something2
target: imaps://login:pasword@ezaezae/Feeds/B
EOF
+CONFFEED = <<EOF
+feeds:
+ - name: feed1
+ url: feed:http://something
+ target: imap://login:pasword@ezaezae/Feeds/A
+ - name: feed2
+ url: http://something2
+ target: imaps://login:pasword@ezaezae/Feeds/B
+EOF
class ConfigTest < Test::Unit::TestCase
def test_cache
@@ -45,4 +54,11 @@ class ConfigTest < Test::Unit::TestCase
conf = F2IConfig::new(sio)
assert_equal(2, conf.imap_accounts.length)
end
+
+ def test_feedurls
+ sio = StringIO::new CONFFEED
+ conf = F2IConfig::new(sio)
+ assert_equal('http://something', conf.feeds[0].url)
+ assert_equal('http://something2', conf.feeds[1].url)
+ end
end