require_relative './test_config' require 'hws_strings' require 'git_fusion_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 describe GitFusionStrings do context '#encode,#decode' do it "ensure a repo name doesn't have a forward slash" do str = 'test/string' encoded = GitFusionStrings.encode(str) expect(encoded).to_not include('/') end it "ensure a repo name with a forward slash can be decoded back" do str = 'test/string' encoded = GitFusionStrings.encode(str) decoded = GitFusionStrings.decode(encoded) expect(decoded).to eq(str) end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 16014 | Doug Scheirer | Merge down from main | ||
#1 | 15688 | Doug Scheirer |
Populate -o //guest/perforce_software/helix-web-services/... //guest/doug_scheirer/helix-web-services/.... |
||
//guest/perforce_software/helix-web-services/main/source/helix_web_services/spec/hws_urls_spec.rb | |||||
#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. |