Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bundler will use if parent bundler exists already, so empty it.

  • Loading branch information...
commit 71fe3f498a9d9aeeab872a86c07cfffae95b53f4 1 parent 949e710
Kohei Hasegawa banyan authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 Rakefile
14 Rakefile
View
@@ -43,13 +43,17 @@ task :default => :all_sorcery_specs
desc "Run all sorcery specs"
task :all_sorcery_specs do
+ # we need to be empty, otherwise bundler will use parent bundler.
+ env = {
+ 'BUNDLE_GEMFILE' => nil,
+ 'GEM_PATH' => nil,
+ 'GEM_HOME' => nil,
+ 'BUNDLE_BIN_PATH' => nil,
+ 'RUBYOPT' => nil
+ }
Dir['spec/**/Rakefile'].each do |rakefile|
directory_name = File.dirname(rakefile)
- sh <<-CMD
- cd #{directory_name}
- bundle
- bundle exec rake
- CMD
+ system(env, "cd #{directory_name} && pwd && bundle && bundle exec rake")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.