test/test_iri.rb in iri-0.3.0 vs test/test_iri.rb in iri-0.4.0
- old
+ new
@@ -115,9 +115,16 @@
'http://google/?b=2&c=3',
Iri.new('http://google/?a=1&b=2&c=3&a=3').del('a').del('x').to_s
)
end
+ def test_appends_path
+ assert_equal(
+ 'http://google/a/b/z+%2F+7?x=3',
+ Iri.new('http://google/a/b?x=3').append('z / 7').to_s
+ )
+ end
+
def test_replaces_query_param
assert_equal(
'http://google/?a=hey&b=2&c=3',
Iri.new('http://google/?a=1&b=2&c=3&a=33').over(a: 'hey').to_s
)