Permalink
Browse files

Detect CI

  • Loading branch information...
1 parent d31d607 commit bcfc4d205ac15572a1bfdd37dbe237d22699c86c @pengwynn committed Dec 30, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 spec/spec_helper.rb
View
@@ -6,13 +6,15 @@
config.order = 'random'
config.before do
- @original_home = ENV['HOME']
- new_home = File.expand_path("./tmp/fakehome")
- ENV['HOME'] = new_home
+ unless ENV['CI']
+ @original_home = ENV['HOME']
+ new_home = File.expand_path("./tmp/fakehome")
+ ENV['HOME'] = new_home
+ end
end
config.after do
- ENV['HOME'] = @original_home
+ ENV['HOME'] = @original_home unless ENV['CI']
end
end

0 comments on commit bcfc4d2

Please sign in to comment.