Skip to content

Commit

Permalink
Do not append the path to Gemfile if path is already appended
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Sep 12, 2011
1 parent 3e6463b commit 94aacd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/step_definitions/rails_steps.rb
Expand Up @@ -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
Expand Down

0 comments on commit 94aacd8

Please sign in to comment.