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.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_fresh.rb b/test/test_fresh.rb
index 41c30ef..f20aacc 100644
--- a/test/test_fresh.rb
+++ b/test/test_fresh.rb
@@ -6,6 +6,12 @@ class TestMogFresh < Test::Unit::TestCase
   alias setup setup_mogilefs
   alias teardown teardown_mogilefs
 
+  def test_change_device_weight
+    add_host_device_domain
+    assert_equal true, @admin.change_device_weight("me", 1, 50)
+    assert_equal 50, @admin.get_devices(1)[0]["weight"]
+  end
+
   def test_list_keys_invalid_domain
     add_host_device_domain
     domain = @domain + ".non-existent"