about summary refs log tree commit homepage
path: root/test/test_fresh.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_fresh.rb')
-rw-r--r--test/test_fresh.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_fresh.rb b/test/test_fresh.rb
index 7d03c01..b7882cd 100644
--- a/test/test_fresh.rb
+++ b/test/test_fresh.rb
@@ -5,4 +5,13 @@ class TestMogFresh < Test::Unit::TestCase
   include TestFreshSetup
   alias setup setup_mogilefs
   alias teardown teardown_mogilefs
+
+  def test_list_keys_invalid_domain
+    add_host_device_domain
+    domain = @domain + ".non-existent"
+    client = MogileFS::MogileFS.new :hosts => @hosts, :domain => domain
+    assert_raises(MogileFS::Backend::UnregDomainError) do
+      client.list_keys
+    end
+  end
 end