Skip to content
Browse files

Do not append the path to Gemfile if path is already appended

  • Loading branch information...
1 parent 3e6463b commit 94aacd8fd0b297012ebccf0e3e67a3e06b2c0768 @sikachu sikachu committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/step_definitions/rails_steps.rb
View
2 features/step_definitions/rails_steps.rb
@@ -5,7 +5,7 @@
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'])
+ ENV['BUNDLE_GEMFILE'] = File.join(Dir.pwd, ENV['BUNDLE_GEMFILE']) unless ENV['BUNDLE_GEMFILE'].start_with?(Dir.pwd)
end
After do

0 comments on commit 94aacd8

Please sign in to comment.
Something went wrong with that request. Please try again.