Gem's Rake tasks to use current location
In a gem I use Appraisal to test against different gem dependencies.
The problem I face is that Appraisal try to run the command :
BUNDLE_GEMFILE=gemfiles/3.0.gemfile bundle exec /Users/seb/.rvm/gems/ruby-1.8.7-p334/bin/rake spec cucumber
This cause an issue with the cucumber test as aruba's file are located in a subdirectory tmp/aruba
A solution would be to get Appraisal to use absolute path to locate the gemfiles and therefore run something like follow instead:
BUNDLE_GEMFILE=/Users/seb/Wor开发者_运维百科k/GitHub/rspec-subject-extensions/gemfiles/3.0.gemfile bundle exec /Users/seb/.rvm/gems/ruby-1.8.7-p334/bin/rake spec cucumber
Question is, how to get Appraisal rake tasks to know the current location ?
Dir.pwd
seems to do just that. Thanks to croaky for the tip.
精彩评论