1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix failure when build in srcdir/build

If `build` directory exists, `rake build` is `Rake::FileTask`.
So skip if exists.
This commit is contained in:
Kazuhiro NISHIYAMA 2021-01-29 11:59:42 +09:00
parent 522adbc945
commit acb6b395b6
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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