()
| 72 | |
| 73 | #[test] |
| 74 | fn resource_url_replaces_code_suffix() { |
| 75 | let r = HttpRemote::new("https://h/workspaces/w/projects/p/code").unwrap(); |
| 76 | assert_eq!( |
| 77 | r.resource_url("refs/views"), |
| 78 | "https://h/workspaces/w/projects/p/refs/views" |
| 79 | ); |
| 80 | assert_eq!( |
| 81 | r.resource_url("refs/views/dev"), |
| 82 | "https://h/workspaces/w/projects/p/refs/views/dev" |
| 83 | ); |
| 84 | } |
| 85 | |
| 86 | #[test] |
| 87 | fn resource_url_without_code_suffix_appends() { |