Skip to content

Commit 5445a22

Browse files
committed
Fix failing spec on ruby 3.3
Signed-off-by: Samuel Giddins <[email protected]>
1 parent 93a8a01 commit 5445a22

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/gemstash/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
# :nodoc:
44
module Gemstash
5-
VERSION = "2.7.1"
5+
VERSION = "2.8.0"
66
end

spec/integration_spec.rb

+2-5
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,15 @@
152152
end
153153

154154
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"
156155
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
159157
expect(execute("gem", ["search", "-ar", "speaker"], env: env)).
160158
to exit_success.and_output(/speaker \(0.1.0\)/)
161159
end
162160

163161
it "finds private gems when just the private source is configured with a trailing slash", db_transaction: false do
164162
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
167164
expect(execute("gem", ["search", "-ar", "speaker"], env: env)).
168165
to exit_success.and_output(/speaker \(0.1.0\)/)
169166
end

0 commit comments

Comments
 (0)