|
4 | 4 | describe "Pkg::Util::Git_tag" do |
5 | 5 | context "parse_ref!" do |
6 | 6 | it "fails for a ref that doesn't exist'" do |
7 | | - expect { Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "garbagegarbage") }.to raise_error(RuntimeError, /ERROR : Not a ref or sha!/) |
| 7 | + expect { Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "garbagegarbage") }.to raise_error(RuntimeError, /ERROR : Not a ref or sha!/) |
8 | 8 | end |
9 | 9 | end |
10 | 10 |
|
11 | 11 | context "sha?" do |
12 | 12 | it "sets ref type as a sha when passed a sha" do |
13 | | - git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "4eef05389ebf418b62af17406c7f9f13fa51f975") |
| 13 | + git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "4eef05389ebf418b62af17406c7f9f13fa51f975") |
14 | 14 | expect(git_tag.sha?).to eq(true) |
15 | 15 | end |
16 | 16 | end |
17 | 17 |
|
18 | 18 | context "branch?" do |
19 | 19 | it "sets ref type as a branch when passed a branch" do |
20 | | - git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "main") |
| 20 | + git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "main") |
21 | 21 | expect(git_tag.branch?).to eq(true) |
22 | 22 | end |
23 | 23 | end |
24 | 24 |
|
25 | 25 | context "tag?" do |
26 | 26 | it "sets ref type as a tag when passed a tag" do |
27 | | - git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "tags/0.6.2") |
| 27 | + git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "tags/0.6.2") |
28 | 28 | expect(git_tag.tag?).to eq(true) |
29 | 29 | end |
30 | 30 |
|
31 | 31 | it "sets ref type as a tag when passed a fully qualified tag" do |
32 | | - git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "refs/tags/0.6.2") |
| 32 | + git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "refs/tags/0.6.2") |
33 | 33 | expect(git_tag.tag?).to eq(true) |
34 | 34 | end |
35 | 35 | end |
|
0 commit comments