|
169 | 169 | end |
170 | 170 |
|
171 | 171 | it "finds private gems when just the private source is configured", db_transaction: false do |
172 | | - skip "this doesn't work because Rubygems sends /specs.4.8.gz instead of /private/specs.4.8.gz" |
173 | 172 | env = { "HOME" => env_dir } |
174 | | - expect(execute("gem", ["source", "-r", "https://rubygems.org/"], env: env)).to exit_success |
175 | | - expect(execute("gem", ["source", "-a", host], env: env)).to exit_success |
| 173 | + expect(execute("gem", ["source", "-r", "https://rubygems.org/", "-a", host], env: env)).to exit_success |
176 | 174 | expect(execute("gem", ["search", "-ar", "speaker"], env: env)). |
177 | 175 | to exit_success.and_output(/speaker \(0.1.0\)/) |
178 | 176 | end |
179 | 177 |
|
180 | 178 | it "finds private gems when just the private source is configured with a trailing slash", db_transaction: false do |
181 | 179 | env = { "HOME" => env_dir } |
182 | | - expect(execute("gem", ["source", "-r", "https://rubygems.org/"], env: env)).to exit_success |
183 | | - expect(execute("gem", ["source", "-a", "#{host}/"], env: env)).to exit_success |
| 180 | + expect(execute("gem", ["source", "-r", "https://rubygems.org/", "-a", "#{host}/"], env: env)).to exit_success |
184 | 181 | expect(execute("gem", ["search", "-ar", "speaker"], env: env)). |
185 | 182 | to exit_success.and_output(/speaker \(0.1.0\)/) |
186 | 183 | end |
|
0 commit comments