diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-11-11 10:47:16 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-11-11 10:57:45 +0000 |
commit | 55de4a3375793fa31993a1e9b4be777007bd31b8 (patch) | |
tree | 700a4d8889c94a75632ea6d3110b979e2802512b /test/test_mogilefs_integration_list_keys.rb | |
parent | 45f519f571cf88e1710e8175cff5742bed070ff9 (diff) | |
download | mogilefs-client-55de4a3375793fa31993a1e9b4be777007bd31b8.tar.gz |
url_unescape: fix ordering of "+" => " " of swap
Otherwise we'll be converting "%2B" into " " instead of "+" when it appears in a file name.
Diffstat (limited to 'test/test_mogilefs_integration_list_keys.rb')
-rw-r--r-- | test/test_mogilefs_integration_list_keys.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_mogilefs_integration_list_keys.rb b/test/test_mogilefs_integration_list_keys.rb index bb3f94a..6c62e6b 100644 --- a/test/test_mogilefs_integration_list_keys.rb +++ b/test/test_mogilefs_integration_list_keys.rb @@ -23,6 +23,12 @@ class TestMogileFSIntegrationListKeys < TestMogIntegration end end + def test_list_keys_strange + @client.store_content("hello+world", nil, "HI") + rv = @client.list_keys + assert_equal "hello+world", rv[0][0] + end + def test_each_key 9.times { |i| @client.store_content("ek_#{i}", nil, i.to_s) } n = 0 |