|
152 | 152 | end
|
153 | 153 |
|
154 | 154 | it "finds private gems when just the private source is configured", db_transaction: false do
|
155 |
| - skip "this doesn't work because Rubygems sends /specs.4.8.gz instead of /private/specs.4.8.gz" |
156 | 155 | env = { "HOME" => env_dir }
|
157 |
| - expect(execute("gem", ["source", "-r", "https://rubygems.org/"], env: env)).to exit_success |
158 |
| - expect(execute("gem", ["source", "-a", host], env: env)).to exit_success |
| 156 | + expect(execute("gem", ["source", "-r", "https://rubygems.org/", "-a", host], env: env)).to exit_success |
159 | 157 | expect(execute("gem", ["search", "-ar", "speaker"], env: env)).
|
160 | 158 | to exit_success.and_output(/speaker \(0.1.0\)/)
|
161 | 159 | end
|
162 | 160 |
|
163 | 161 | it "finds private gems when just the private source is configured with a trailing slash", db_transaction: false do
|
164 | 162 | env = { "HOME" => env_dir }
|
165 |
| - expect(execute("gem", ["source", "-r", "https://rubygems.org/"], env: env)).to exit_success |
166 |
| - expect(execute("gem", ["source", "-a", "#{host}/"], env: env)).to exit_success |
| 163 | + expect(execute("gem", ["source", "-r", "https://rubygems.org/", "-a", "#{host}/"], env: env)).to exit_success |
167 | 164 | expect(execute("gem", ["search", "-ar", "speaker"], env: env)).
|
168 | 165 | to exit_success.and_output(/speaker \(0.1.0\)/)
|
169 | 166 | end
|
|
0 commit comments