Showing the changes to test (1 of 2 files). Show all
Unified · Split
| @@ -394,6 +394,14 @@ class DocsUrlTest < MiniTest::Spec · 393 unmodified lines | ||
| 394 | 394 | assert_equal 'file', url.relative_path_to('http://example.com/file?query#frag') |
| 395 | 395 | end |
| 396 | 396 | |
| 397 | + it "returns 'some:file' with 'http://example.com/some:file'" do | |
| 398 | + assert_equal 'some:file', url.relative_path_to('http://example.com/some:file') | |
| 399 | + end | |
| 400 | + | |
| 401 | + it "returns 'some:file' with 'http://example.com/some:file?query#frag'" do | |
| 402 | + assert_equal 'some:file', url.relative_path_to('http://example.com/some:file?query#frag') | |
| 403 | + end | |
| 404 | + | |
| 397 | 405 | it "returns nil with '/file'" do |
| 398 | 406 | assert_nil url.relative_path_to('/file') |
| 399 | 407 | end |