Skip to content

Commit

Permalink
Revert "/tmp doesn't exist on Windows"
Browse files Browse the repository at this point in the history
This reverts commit b1c6427.
  • Loading branch information
deivid-rodriguez committed Apr 29, 2021
1 parent 4c4aabf commit ada1ead
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bundler/spec/bundler/compact_index_client/updater_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@

RSpec.describe Bundler::CompactIndexClient::Updater do
let(:fetcher) { double(:fetcher) }
let(:local_path) { Pathname.new Dir.mktmpdir("localpath") }
let(:local_path) { Pathname("/tmp/localpath") }
let(:remote_path) { double(:remote_path) }

let!(:updater) { described_class.new(fetcher) }

context "when the ETag header is missing" do
# Regression test for https://github.com/rubygems/bundler/issues/5463
let(:response) { double(:response, :body => "abc123") }

let(:response) { double(:response, :body => "") }

it "treats the response as an update" do
# Twice: #update retries on failure
expect(response).to receive(:[]).with("ETag") { nil }
expect(fetcher).to receive(:call) { response }

Expand Down

0 comments on commit ada1ead

Please sign in to comment.