@@ -26,7 +26,7 @@ load 'util/init.sh'
26
26
27
27
assert_success
28
28
assert_line -n 0 -p " Installing 'username/package'"
29
- assert_line -n 1 ' do-plumbing-clone raw https://github.com/username/package.git'
29
+ assert_line -n 1 ' do-plumbing-clone https://github.com/username/package.git username/package '
30
30
assert_line -n 2 ' do-plumbing-deps username/package'
31
31
assert_line -n 3 ' do-plumbing-link-bins username/package'
32
32
assert_line -n 4 ' do-plumbing-link-completions username/package'
@@ -44,13 +44,13 @@ load 'util/init.sh'
44
44
45
45
assert_success
46
46
assert_line -n 0 -p " Installing 'username/package'"
47
- assert_line -n 1 ' do-plumbing-clone raw https://github.com/username/package.git'
47
+ assert_line -n 1 ' do-plumbing-clone https://github.com/username/package.git username/package '
48
48
assert_line -n 2 ' do-plumbing-deps username/package'
49
49
assert_line -n 3 ' do-plumbing-link-bins username/package'
50
50
assert_line -n 4 ' do-plumbing-link-completions username/package'
51
51
assert_line -n 5 ' do-plumbing-link-man username/package'
52
52
assert_line -n 6 -p " Installing 'username2/package2'"
53
- assert_line -n 7 ' do-plumbing-clone raw https://github.com/username2/package2.git'
53
+ assert_line -n 7 ' do-plumbing-clone https://github.com/username2/package2.git username2/package2 '
54
54
assert_line -n 8 ' do-plumbing-deps username2/package2'
55
55
assert_line -n 9 ' do-plumbing-link-bins username2/package2'
56
56
assert_line -n 10 ' do-plumbing-link-completions username2/package2'
@@ -68,7 +68,7 @@ load 'util/init.sh'
68
68
run do-install https://gitlab.com/username/package
69
69
70
70
assert_success
71
- assert_line " do-plumbing-clone raw https://gitlab.com/username/package.git"
71
+ assert_line " do-plumbing-clone https://gitlab.com/username/package.git username/package "
72
72
}
73
73
74
74
@test " uses longhand (http) site to clone from, if specified" {
@@ -81,7 +81,7 @@ load 'util/init.sh'
81
81
run do-install http://gitlab.com/username/package
82
82
83
83
assert_success
84
- assert_line " do-plumbing-clone raw http://gitlab.com/username/package.git"
84
+ assert_line " do-plumbing-clone http://gitlab.com/username/package.git username/package "
85
85
}
86
86
87
87
@test " uses shorthand site to clone from, if specified" {
@@ -94,7 +94,7 @@ load 'util/init.sh'
94
94
run do-install site/username/package
95
95
96
96
assert_success
97
- assert_line " do-plumbing-clone raw https://site/username/package.git"
97
+ assert_line " do-plumbing-clone https://site/username/package.git username/package "
98
98
}
99
99
100
100
@test " uses GitHub as default site, if not specified" {
@@ -107,7 +107,7 @@ load 'util/init.sh'
107
107
run do-install username/package
108
108
109
109
assert_success
110
- assert_line " do-plumbing-clone raw https://github.com/username/package.git"
110
+ assert_line " do-plumbing-clone https://github.com/username/package.git username/package "
111
111
}
112
112
113
113
@test " uses ssh protocol, when specified" {
@@ -120,7 +120,7 @@ load 'util/init.sh'
120
120
run do-install --ssh username/package
121
121
122
122
assert_success
123
- assert_line " do-plumbing-clone raw git@github.com:username/package.git"
123
+ assert_line " do-plumbing-clone git@github.com:username/package.git username/package "
124
124
}
125
125
126
126
@test " uses ssh protocol raw, when specified" {
@@ -133,7 +133,7 @@ load 'util/init.sh'
133
133
run do-install git@github.com:username/package
134
134
135
135
assert_success
136
- assert_line " do-plumbing-clone raw git@github.com:username/package.git"
136
+ assert_line " do-plumbing-clone git@github.com:username/package.git username/package "
137
137
}
138
138
139
139
@test " uses custom version, when specified" {
@@ -146,7 +146,7 @@ load 'util/init.sh'
146
146
run do-install username/package@v1.2.3
147
147
148
148
assert_success
149
- assert_line " do-plumbing-clone raw https://github.com/username/package.git v1.2.3"
149
+ assert_line " do-plumbing-clone https://github.com/username/package.git username/package v1.2.3"
150
150
}
151
151
152
152
@test " does not use custom version, when not specified" {
@@ -159,5 +159,5 @@ load 'util/init.sh'
159
159
run do-install username/package@
160
160
161
161
assert_success
162
- assert_line " do-plumbing-clone raw https://github.com/username/package.git"
162
+ assert_line " do-plumbing-clone https://github.com/username/package.git username/package "
163
163
}
0 commit comments