summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-12-28 17:06:46 +0800
committerSamuel Giddins <segiddins@segiddins.me>2016-01-25 10:49:51 -0600
commite27e6b1e09f4db2fd459718498bc22855fc2fdbb (patch)
tree7e61a01d3e6a29ca6fca3167dc1fa9e7cba0893b
parent4ee51af3f45e309d3f61200c7c75206c8acaaf00 (diff)
downloadbundler-e27e6b1e09f4db2fd459718498bc22855fc2fdbb.tar.gz
Pathname#to_path doesn’t exist on 1.8.7, so to_s
-rw-r--r--spec/support/artifice/compact_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/artifice/compact_index.rb b/spec/support/artifice/compact_index.rb
index 4e96787799..e7dfda3bea 100644
--- a/spec/support/artifice/compact_index.rb
+++ b/spec/support/artifice/compact_index.rb
@@ -89,7 +89,7 @@ class CompactIndexAPI < Endpoint
etag_response do
file = tmp("versions.list")
file.delete if file.file?
- file = CompactIndex::VersionsFile.new(file.to_path)
+ file = CompactIndex::VersionsFile.new(file.to_s)
file.update_with(gems)
CompactIndex.versions(file, nil, {})
end