diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2021-01-29 11:59:42 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2021-01-29 11:59:42 +0900 |
commit | acb6b395b63ff992ea89ef4dbdff32e5b54e0b20 (patch) | |
tree | 21a38083770f20f17d49c9e08417310cd743ee0a /spec/bundler | |
parent | 522adbc945c209f4993b0d0ee84a44c333de350f (diff) | |
download | ruby-acb6b395b63ff992ea89ef4dbdff32e5b54e0b20.tar.gz |
Fix failure when build in srcdir/build
If `build` directory exists, `rake build` is `Rake::FileTask`.
So skip if exists.
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/bundler/gem_helper_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |