Permalink
Browse files

Fix doubly-prepended path to Gemfile.

  • Loading branch information...
1 parent 6e8ce55 commit 933d545758814c62a25e9d679e56d8bc39a121b3 @gabebw gabebw committed Feb 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 features/support/appraisal.rb
View
4 features/support/appraisal.rb
@@ -2,7 +2,9 @@
ORIGINAL_BUNDLE_VARS = Hash[ENV.select{ |key,value| BUNDLE_ENV_VARS.include?(key) }]
Before do
- ENV['BUNDLE_GEMFILE'] = File.join(Dir.pwd, ENV['BUNDLE_GEMFILE'])
+ if ! ENV['BUNDLE_GEMFILE'].include?(Dir.pwd)
+ ENV['BUNDLE_GEMFILE'] = File.join(Dir.pwd, ENV['BUNDLE_GEMFILE'])
+ end
end
After do

0 comments on commit 933d545

Please sign in to comment.