From acb6b395b63ff992ea89ef4dbdff32e5b54e0b20 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Fri, 29 Jan 2021 11:59:42 +0900 Subject: Fix failure when build in srcdir/build If `build` directory exists, `rake build` is `Rake::FileTask`. So skip if exists. --- spec/bundler/bundler/gem_helper_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/bundler/bundler/gem_helper_spec.rb b/spec/bundler/bundler/gem_helper_spec.rb index 30befdf40c..769c461911 100644 --- a/spec/bundler/bundler/gem_helper_spec.rb +++ b/spec/bundler/bundler/gem_helper_spec.rb @@ -97,6 +97,7 @@ RSpec.describe Bundler::GemHelper do context "before installation" do it "raises an error with appropriate message" do task_names.each do |name| + skip "Rake::FileTask '#{name}' exists" if File.exist?(name) expect { Rake.application[name] }. to raise_error(/^Don't know how to build task '#{name}'/) end -- cgit v1.2.3