summaryrefslogtreecommitdiff
path: root/spec/bundler/support
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/support')
-rw-r--r--spec/bundler/support/builders.rb4
-rw-r--r--spec/bundler/support/path.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
index 4d713d8708..a0a9d348ab 100644
--- a/spec/bundler/support/builders.rb
+++ b/spec/bundler/support/builders.rb
@@ -22,10 +22,6 @@ module Spec
Gem::Platform.new(platform)
end
- def rake_version
- "13.2.1"
- end
-
def build_repo1
build_repo gem_repo1 do
FileUtils.cp rake_path, "#{gem_repo1}/gems/"
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index b26e77d376..5807624ba9 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -280,6 +280,10 @@ module Spec
Dir["#{base_system_gems}/#{Bundler.ruby_scope}/**/rake*.gem"].first
end
+ def rake_version
+ File.basename(rake_path).delete_prefix("rake-").delete_suffix(".gem")
+ end
+
private
def git_ls_files(glob)