ruby-changes:65079
From: Kazuhiro <ko1@a...>
Date: Fri, 29 Jan 2021 12:01:48 +0900 (JST)
Subject: [ruby-changes:65079] acb6b395b6 (master): Fix failure when build in srcdir/build
https://git.ruby-lang.org/ruby.git/commit/?id=acb6b395b6 From acb6b395b63ff992ea89ef4dbdff32e5b54e0b20 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> 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 30befdf..769c461 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 https://github.com/ruby/ruby/blob/trunk/spec/bundler/bundler/gem_helper_spec.rb#L97 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.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/