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:
parent
522adbc945
commit
acb6b395b6
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue