summaryrefslogtreecommitdiff
path: root/spec/bundler/bundler
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-01-29 11:59:42 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-01-29 11:59:42 +0900
commitacb6b395b63ff992ea89ef4dbdff32e5b54e0b20 (patch)
tree21a38083770f20f17d49c9e08417310cd743ee0a /spec/bundler/bundler
parent522adbc945c209f4993b0d0ee84a44c333de350f (diff)
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/bundler')
-rw-r--r--spec/bundler/bundler/gem_helper_spec.rb1
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