require_relative './test_config' require 'hws_strings' describe HWSStrings do context '#component_encode,#component_decode' do it "ensure a string doesn't have a forward slash" do str = 'test/string' encoded = HWSStrings.component_encode(str) expect(encoded).to_not include('/') end it "ensure a string with a forward slash can be decoded back" do str = 'test/string' encoded = HWSStrings.component_encode(str) decoded = HWSStrings.component_decode(str) expect(decoded).to eq(str) end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 17271 | tjuricek | Remove deprecated Ruby implementation. | ||
#2 | 15969 | tjuricek |
Add support for repo creation/update and deletion, same for SSH keys. Add util module for supporting methods, modify temp client to dissapear. (Modified submit of review 15549 by @ptomiak) |
||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services/spec/hws_urls_spec.rb | |||||
#2 | 15542 | tjuricek |
Add spaces to our basic 'component encode' mechanism, and use it for HVE project IDs. In general, this will make the HVE IDs a bit more readable. |
||
#1 | 15532 | tjuricek | Add a basic HWSUrls class to handle strings with forward slashes as URL path parts. |