Sha256: c5eb76ec818837202ed35df4c58e6dda2e49cbb044e5167b7f7f97537b12a606
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
class NotationTest include TB::Mod::Concerns::NotationConcern end describe NotationTest do let(:notation) { described_class.new } context "clean_notation" do it "cleans" do source = "git::ssh://ec2-user@localhost:/home/ec2-user/environment/repo" cleaned = notation.clean_notation(source) expect(cleaned).to eq "/home/ec2-user/environment/repo" source = "ssh://ec2-user@localhost:/home/ec2-user/environment/repo" cleaned = notation.clean_notation(source) expect(cleaned).to eq "/home/ec2-user/environment/repo" source = "ssh://ec2-user@localhost:/home/ec2-user/environment/repo//subfolder" cleaned = notation.clean_notation(source) expect(cleaned).to eq "/home/ec2-user/environment/repo//subfolder" source = "git::ssh://ec2-user@localhost:environment/repo" cleaned = notation.clean_notation(source) expect(cleaned).to eq "environment/repo" source = "ssh://ec2-user@localhost:~/environment/repo" cleaned = notation.clean_notation(source) expect(cleaned).to eq "~/environment/repo" source = "git::ssh://localhost:environment/repo" cleaned = notation.clean_notation(source) expect(cleaned).to eq "environment/repo" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terraspace-bundler-0.5.0 | spec/terraform_bundler/mod/concerns/notation_concern_spec.rb |