test/test_fake_web.rb in chrisk-fakeweb-1.1.2.1 vs test/test_fake_web.rb in chrisk-fakeweb-1.1.2.2

- old
+ new

@@ -317,6 +317,13 @@ end assert_equal '404', exception.response.code assert_equal 'Not Found', exception.response.msg end + def test_registry_sort_query_params + assert_equal "a=1&b=2", FakeWeb::Registry.instance.send(:sort_query_params, "b=2&a=1") + end + + def test_registry_sort_query_params_sorts_by_value_if_keys_collide + assert_equal "a=1&a=2&b=2", FakeWeb::Registry.instance.send(:sort_query_params, "a=2&b=2&a=1") + end end